Contract
beaker / Contract
Class: Contract
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new Contract(address, client)
Parameters
| Name | Type |
|---|---|
address | string |
client | CosmWasmClient |
Defined in
Properties
address
• address: string
Defined in
client
• client: CosmWasmClient
Defined in
Methods
execute
▸ execute(xmsg, senderAddress, fee?): Object
Parameters
| Name | Type | Default value |
|---|---|---|
xmsg | Msg | undefined |
senderAddress | null | string | undefined |
fee | number | StdFee | "auto" | 'auto' |
Returns
Object
| Name | Type |
|---|---|
by | (account: Account) => Promise<ExecuteResult> |
Defined in
getCode
▸ getCode(): Promise<CodeDetails>
Returns
Promise<CodeDetails>
Defined in
getInfo
▸ getInfo(): Promise<Contract>
Returns
Promise<Contract>
Defined in
query
▸ query(qmsg): Promise<unknown>
Parameters
| Name | Type |
|---|---|
qmsg | Msg |
Returns
Promise<unknown>