Execute Batch as Delegator
AI-generatedOverview
This node operation executes multiple smart contract methods as a delegator in a single blockchain transaction. It is useful for scenarios where a user needs to perform batch operations on smart contracts on behalf of another address (the delegator), leveraging ERC-7702 delegation. For example, a decentralized application might use this to execute several contract calls atomically on behalf of a user who has delegated permissions.
Use Case Examples
- Executing multiple contract methods in one transaction to save gas and ensure atomicity.
- Performing batch operations on behalf of a delegator address to manage permissions and delegation workflows.
Properties
| Name | Meaning |
|---|---|
| Contract Methods | A collection of contract methods to execute in the batch. Each method includes the method name or ID, parameters as a JSON object, the delegator address on whose behalf the transaction is executed, and optional fields such as contract address override and value to send with the method. |
| Wallet Name or ID | The wallet to use for signing and sending the batch transaction. Can be selected from a list or specified by ID. |
| Additional Fields | Optional settings for the batch execution, including atomicity (whether all transactions must succeed or the batch is rolled back), memo text to include with the transaction, a list of ERC-7702 authorizations, and a gas limit for the batch execution. |
Output
JSON
result- The result of the batch execution, including transaction details and status.error- Error details if the batch execution fails.
Dependencies
- Requires an API key credential for authentication to the 1Shot API service.
Troubleshooting
- Common issues include invalid contract method IDs or parameters, incorrect delegator address, insufficient gas limit, or authorization errors related to ERC-7702 delegation.
- Errors may indicate transaction failure or rollback if atomic execution is enabled; users should verify parameters and wallet permissions.
- Ensure the wallet ID and delegator address are correct and authorized for the batch operations.
Links
- n8n Expressions Documentation - Reference for using expressions to specify dynamic values in node parameters.