1Shot API Submit & Wait icon

1Shot API Submit & Wait

Execute a contract method and wait for the transaction to complete

Execute as Delegator

AI-generated

Overview

This node operation executes a smart contract method on the blockchain using a stored ERC-7702 delegation. It allows a user to perform contract method calls on behalf of a delegator wallet, which is useful in scenarios where delegation of transaction execution rights is required, such as managing permissions or automating contract interactions through delegated wallets.

Use Case Examples

  1. A user wants to execute a token transfer contract method on behalf of another wallet that has delegated authority.
  2. Automating contract method calls where the actual transaction sender is a delegator wallet, enabling permissioned contract interactions.

Properties

Name Meaning
Contract Method Name or ID Selects the specific contract method to execute, either by choosing from a list or specifying an ID via expression.
Parameters JSON object containing the parameters to pass to the contract method, e.g., recipient address and amount.
Delegator Wallet Address The blockchain address of the delegator wallet that will be used to execute the contract method.
Additional Fields Optional fields to customize the contract method execution, including Wallet ID, Memo text, Contract Address Override, Value (native token amount), Authorization List for ERC-7702, and Gas Limit.

Output

JSON

  • result - The result object containing details of the executed contract method transaction, including success status and transaction data.

Dependencies

  • Requires an OAuth2 API credential for authentication with the 1Shot API service to execute contract methods on the blockchain.

Troubleshooting

  • Common issues include invalid contract method ID or parameters, incorrect delegator wallet address, insufficient gas limit, or missing authorization in the ERC-7702 delegation list.
  • Errors may indicate transaction failure due to blockchain conditions or API errors; ensure all required fields are correctly set and the delegator wallet has proper delegation rights.

Discussion