The Bundle subclass to use.
Optional
addressThe address from which transactions are signed and sent.
Optional
apiSigning API handle.
The bech32 prefix for the account's address
Chain on which this agent operates.
The coin type in the HD derivation path
Transaction fees for this agent.
The account index in the HD derivation path
Logging handle.
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 clients for all Cognitarium instances, keyed by address.
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 }),
}))
Get clients for all Objectarium instances, keyed by address.
Upload code, generating a new code id/hash pair.
Optional
meta: Partial<Uploadable>Generated using TypeDoc
Agent for OKP4.