Actions27
- Contract Event Actions
- Contract Method Actions
- Prompt Actions
- Transaction Actions
- Wallet Actions
- X402 Request Actions
- Chain Actions
Contract Method → Execute Batch
AI-generatedOverview
This node operation executes a batch of contract methods on an EVM blockchain using the 1Shot API. It allows users to send multiple contract method calls in a single batch transaction, which can be executed atomically (all succeed or all fail) or non-atomically. This is useful for scenarios where multiple contract interactions need to be performed together, such as batch token transfers, multi-step contract interactions, or complex decentralized finance (DeFi) operations.
Use Case Examples
- Batch executing multiple token transfers in one transaction to save gas fees.
- Performing a series of contract method calls for a DeFi protocol in a single atomic batch to ensure all steps succeed together.
Properties
| Name | Meaning |
|---|---|
| Contract Methods | A collection of contract method calls to execute in the batch. Each includes the method name or ID, parameters as a JSON object, and optional fields like contract address override and value to send. |
| 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 whether the batch is atomic, an optional memo text, a list of ERC-7702 authorizations, and a gas limit override. |
Output
JSON
json- The result of the batch contract method execution, including transaction details and status.
Dependencies
- 1Shot API
- an API key credential for 1Shot OAuth2 authentication
Troubleshooting
- Ensure the wallet ID is valid and has sufficient funds to cover gas fees.
- Verify that the contract method IDs and parameters are correct and match the contract ABI.
- If the batch is atomic, any failure in one method will roll back the entire batch; check individual method parameters carefully.
- Check gas limit settings to avoid out-of-gas errors; if unsure, leave gas limit empty to use estimated gas.
Links
- 1Shot API Documentation - Official documentation for the 1Shot API used to interact with EVM blockchains.