Build ERC-7715 Session Key & Coinbase SpendPermission Payloads
build_erc7715_and_coinbase_spend_permissionGenerates non-custodial ERC-7715 wallet_grantPermissions JSON-RPC and Coinbase SpendPermissionManager EIP-712 structs to bound AI agent daily/per-tx USDC spending.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "build_erc7715_and_coinbase_spend_permission"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chainId | No | EVM chain ID ('8453' Base, '42161' Arbitrum, '1' Ethereum, '10' Optimism, '137' Polygon) | |
| maxPerTxUsdc | No | Max per-transaction USDC cap (default 5) | |
| smartAccount | No | Owner smart account address (0x...) | |
| agentSessionSigner | No | Agent session key address (0x...) | |
| dailyAllowanceUsdc | No | Max daily USDC allowance (default 25) |