beaker / Contract
Contract instance with baked-in client
• new Contract(address
, client
)
Name | Type |
---|---|
address |
string |
client |
CosmWasmClient |
• address: string
• client: CosmWasmClient
▸ execute(xmsg
, senderAddress
, fee?
): Object
Execute the contract.
example usage: contract.execute(xmsg).by(signerAccount)
Name | Type | Default value |
---|---|---|
xmsg |
Msg |
undefined |
senderAddress |
null | string |
undefined |
fee |
number | StdFee | "auto" |
'auto' |
Object
Name | Type |
---|---|
by |
(account : Account ) => Promise <ExecuteResult > |
▸ getCode(): Promise
<CodeDetails
>
Get code details
Promise
<CodeDetails
>
▸ getInfo(): Promise
<Contract
>
Get contract info
Promise
<Contract
>
▸ query(qmsg
): Promise
<unknown
>
Query the contract by passing query message
Name | Type |
---|---|
qmsg |
Msg |
Promise
<unknown
>
query result