Properties
Optional
address
address?: string
Optional
code Hash
code Hash?: string
fees
fees
: Record < string , IFee > = {}
Accessors
chain
get chain( ) : undefined | Chain
Returns undefined | Chain
Methods
execute
execute( msg: Message , opt?: ExecOpts ) : Promise < unknown >
Returns Promise < unknown >
fetch Code Hash
fetch Code Hash( expected?: undefined | string ) : Promise < Client >
Parameters
expected: undefined | string = ...
Returns Promise < Client >
get Fee
get Fee( msg?: string | Record < string , unknown > ) : undefined | IFee
Parameters
Optional
msg: string | Record < string , unknown >
Returns undefined | IFee
query
query< U > ( msg: Message ) : Promise < U >
Returns Promise < U >
Protected
validate
validate( kind: string , expected: any , actual: any ) : void
Parameters
kind: string
expected: any
actual: any
Returns void
with Agent
with Agent( agent?: undefined | Agent ) : Client
Parameters
agent: undefined | Agent = ...
with Fees
with Fees( fees: Record < string , IFee > ) : Client
Parameters
fees: Record < string , IFee >
Client: interface to the API of a particular contract instance. Has an
address
on a specificchain
, usually also anagent
. Subclass this to add the contract's methods.