Bundle class used by this agent.
Optional addressThe address from which transactions are signed and sent.
Downcast chain property to Scrt only.
Default fees for this agent.
Optional mnemonicThe wallet's mnemonic.
Optional nameThe friendly name of the agent.
Whether to simulate each execution first to get a more accurate gas estimate.
Static BundleThe default Bundle class used by this Agent.
Instance of the underlying platform API provided by secretjs.
This agent's balance in the chain's native token.
The default denomination in which the agent operates.
Provide this to allow SecretJS to sign with keys stored in Keplr.
The chain's current block height.
Wait until the block height increments.
Complete the asynchronous initialization of this Agent.
Execute a transaction bundle.
Optional cb: BundleCallback<B>Bundle if called with no arguments
Call a transaction method on a smart contract.
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>Create a new smart contract from a code id, label and init message.
AnyContract with no address populated yet.
This will be populated after executing the bundle.
await agent.instantiate(template.define({ label, initMsg })
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 }),
}))
Send native tokens to 1 recipient.
Optional opts: anyGenerated using TypeDoc
Represents a connection to the Secret Network, authenticated as a specific address.