Skip to main content

ABIEntity

@opcat-labs/scrypt-ts-opcat v1.0.4


@opcat-labs/scrypt-ts-opcat / ABIEntity

Interface: ABIEntity

Defined in: packages/scrypt-ts-opcat/src/smart-contract/types/artifact.ts:90

Represents an ABI (Application Binary Interface) entity in a smart contract. A JSON array defining how to interact with the contract (e.g., functions, events, parameters). Used by clients (like dApps) to encode/decode transactions and calls.

Properties

index?

optional index: number

Defined in: packages/scrypt-ts-opcat/src/smart-contract/types/artifact.ts:94

Optional index, typically used for event parameters.


name?

optional name: string

Defined in: packages/scrypt-ts-opcat/src/smart-contract/types/artifact.ts:92

Optional name of the ABI entity.


params

params: ParamEntity[]

Defined in: packages/scrypt-ts-opcat/src/smart-contract/types/artifact.ts:93

Array of parameter entities for the ABI.


returnType?

optional returnType: string

Defined in: packages/scrypt-ts-opcat/src/smart-contract/types/artifact.ts:95


type

type: string

Defined in: packages/scrypt-ts-opcat/src/smart-contract/types/artifact.ts:91

The type of the ABI entity (e.g., "function", "event").