Skip to main content

Contract

beaker / Contract

Class: Contract

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Contract(address, client)

Parameters

NameType
addressstring
clientCosmWasmClient

Defined in

src/contract.ts:20

Properties

address

address: string

Defined in

src/contract.ts:17


client

client: CosmWasmClient

Defined in

src/contract.ts:18

Methods

execute

execute(xmsg, senderAddress, fee?): Object

Parameters

NameTypeDefault value
xmsgMsgundefined
senderAddressnull | stringundefined
feenumber | StdFee | "auto"'auto'

Returns

Object

NameType
by(account: Account) => Promise<ExecuteResult>

Defined in

src/contract.ts:51


getCode

getCode(): Promise<CodeDetails>

Returns

Promise<CodeDetails>

Defined in

src/contract.ts:35


getInfo

getInfo(): Promise<Contract>

Returns

Promise<Contract>

Defined in

src/contract.ts:28


query

query(qmsg): Promise<unknown>

Parameters

NameType
qmsgMsg

Returns

Promise<unknown>

Defined in

src/contract.ts:43