The Bundle subclass to use.
The address of this agent.
The chain on which this agent operates.
Optional
feesDefault fee maximums for send, upload, init, and execute.
Optional
mnemonicThe wallet's mnemonic.
Optional
nameThe friendly name of the agent.
Static
BundleMessage bundle that warns about unsupported messages.
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.
Complete the asynchronous initialization of this Agent.
Execute a transaction bundle.
Bundle if called with no arguments
Promise<any[]> if called with Bundle#wrap args
Optional
cb: BundleCallback<B>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 on the mocknet.
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.
await agent.instantiateMany(template.instances({
One: { label, initMsg },
Two: { label, initMsg },
}))
await agent.instantiateMany({
One: template1.instance({ label, initMsg }),
Two: template2.instance({ label, initMsg }),
}))
either an Array
Upload a binary to the mocknet.
Optional
meta: Partial<Uploadable>Generated using TypeDoc
By authenticating to a network you obtain an Agent, which can perform transactions as the authenticated identity.