execute_onchain_intent
Simulates and executes a gasless, sponsored Web3 transaction on Base L2 (e.g. token swaps, transfers). Runs Tenderly dry-run safety checks automatically before broadcasting. Requires an API key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agentId | No | Agent identifier for session scoping. | |
| calldata | Yes | Hex-encoded transaction calldata. | |
| valueWei | No | Native token value in Wei (defaults to '0'). | |
| fromAddress | Yes | The Safe Smart Account address performing the action. | |
| sessionKeyId | No | Optional ERC-7579 session key id to enforce spend/target caps. | |
| targetAddress | Yes | Target contract or token recipient address. | |
| maxAllowedDrainUSD | No | Maximum allowable wallet drain in USD during simulation guardrail check. |