The Bundle subclass to use.
Optional
addressThe address from which transactions are signed and sent.
Optional
apiSigning API handle.
Optional
bech32The bech32 prefix for the account's address
Optional
chainThe chain on which this agent operates.
Optional
coinThe coin type in the HD derivation path
Optional
feesDefault fee maximums for send, upload, init, and execute.
Optional
hdThe account index in the HD derivation path
Optional
mnemonicThe wallet's mnemonic.
Optional
nameThe friendly name of the agent.
Optional
publicPublic key corresponding to private key derived from mnemonic.
The provided signer, which signs the transactions. TODO: Implement signing transactions without external signer.
Static
BundleThe default Bundle class used by this Agent.
This agent's balance in the chain's native token.
The default denomination in which the agent operates.
The chain's current block height.
Wait until the block height increments.
Async initialization. Populates the api
property.
Execute a transaction bundle.
Optional
cb: BundleCallback<B>Bundle if called with no arguments
Get a client instance for talking to a specific smart contract as this executor.
Optional
address: stringOptional
codeHash: stringRest
...args: unknown[]Get an uploader instance which performs code uploads and optionally caches them.
Optional
options: Partial<U>Instantiate a contract.
Create multiple smart contracts from a Template (providing code id) and a list or map of label/initmsg pairs. Uses this agent's Bundle class to instantiate them in a single transaction.
either an Array
await agent.instantiateMany(template.instances({
One: { label, initMsg },
Two: { label, initMsg },
}))
await agent.instantiateMany({
One: template1.instance({ label, initMsg }),
Two: template2.instance({ label, initMsg }),
}))
Upload code, generating a new code id/hash pair.
Optional
meta: Partial<Uploadable>Generated using TypeDoc
Generic agent for CosmWasm-enabled chains.