Skip to content

Latest commit

 

History

History
113 lines (63 loc) · 2.14 KB

Account.md

File metadata and controls

113 lines (63 loc) · 2.14 KB

beaker / Account

Class: Account

Account instance with baked-in client and utility methods

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Account(wallet, signingClient, address)

Parameters

Name Type
wallet Secp256k1HdWallet
signingClient SigningCosmWasmClient
address string

Defined in

src/account.ts:28

Properties

address

address: string

Defined in

src/account.ts:26


signingClient

signingClient: SigningCosmWasmClient

Defined in

src/account.ts:24


wallet

wallet: Secp256k1HdWallet

Defined in

src/account.ts:25

Methods

getBalance

getBalance(denom): Promise<Coin>

Get balances for specific denom, only support native coin

Parameters

Name Type
denom string

Returns

Promise<Coin>

Defined in

src/account.ts:52


withDerivedAddress

Static withDerivedAddress(wallet, signingClient): Promise<Account>

Parameters

Name Type
wallet Secp256k1HdWallet
signingClient SigningCosmWasmClient

Returns

Promise<Account>

Defined in

src/account.ts:38