Executing From An Instance
Last updated
Last updated
Execute operations from a Hats Account instance. Only wearers of the instance's hat can call the following functions.
Execute an operation.
Arguments:
account
- Viem account (Address for JSON-RPC accounts or Account for other types).
instance
- The Hats Account instance.
operation
- An object of type , which includes the operation's execution data.
Response:
status
- "success" if transaction was successful, "reverted" if transaction reverted.
transactionHash
- transaction's hash.
Execute a batch of operations.
Arguments:
account
- Viem account (Address for JSON-RPC accounts or Account for other types).
instance
- The Hats Account instance.
Response:
status
- "success" if transaction was successful, "reverted" if transaction reverted.
transactionHash
- transaction's hash.
An object of type , includes:
operations
- An array of objects, each includes an operation's execution data.
An object of type , includes: