Interface ContractABI
interface ContractABI {
buildInfo?: BuildInfo;
constructor: ABIEndpoint;
endpoints: ABIEndpoint[];
kdaAttributes?: unknown[];
name: string;
types: Record<string, ABITypeDefinition>;
upgradeConstructor?: ABIEndpoint;
}
buildInfo?: BuildInfo;
constructor: ABIEndpoint;
endpoints: ABIEndpoint[];
kdaAttributes?: unknown[];
name: string;
types: Record<string, ABITypeDefinition>;
upgradeConstructor?: ABIEndpoint;
}
Index
Properties
OptionalbuildInfo
buildInfo?: BuildInfo
Optional build information about the contract
constructor
constructor: ABIEndpoint
Constructor endpoint for contract initialization
endpoints
endpoints: ABIEndpoint[]
Array of all callable endpoints/functions in the contract
OptionalkdaAttributes
kdaAttributes?: unknown[]
KDA (Klever Digital Asset) specific attributes
name
name: string
Name of the contract
types
types: Record<string, ABITypeDefinition>
Custom type definitions used in the contract
OptionalupgradeConstructor
upgradeConstructor?: ABIEndpoint
Optional upgrade constructor for contract upgrades
Application Binary Interface (ABI) definition for a smart contract
The ABI describes the contract's interface, including all callable methods, their parameters, return types, and custom type definitions. This is essential for encoding function calls and decoding responses when interacting with deployed contracts.
Example