Prepare Agent Delegation
agent_prepare_delegationCreate a pending ERC-7710 delegation from the connected WalletChan wallet, defaulting to a 1Shot-compatible relayer with a Base USDC daily spend limit. Stores encrypted payload in agent vault.
Instructions
Create a pending ERC-7710 delegation from the connected WalletChan wallet. Defaults to a 1Shot-compatible relayer delegation with a Base USDC daily spend scope. Stores the unsigned delegation payload encrypted in the agent vault.
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": "agent_prepare_delegation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Configured chain name or ID. Defaults to Base when configured. | |
| label | No | Optional delegation label. | |
| amount | No | Decimal token/native amount for the spend limit, e.g. 10. Use amountUnits for raw units. | |
| walletId | No | Agent wallet ID. Alternative to profileId. | |
| delegator | No | Main WalletChan account granting authority. Defaults to the first approved WalletChan RPC account. | |
| maxAmount | No | Alias for amount. | |
| profileId | No | Delegated agent profile ID, e.g. agent:<walletId>. The alias agent works only when exactly one agent wallet exists. | |
| scopeType | No | Delegation scope. Defaults to erc20-period-transfer for daily Base USDC limits. | |
| startDate | No | Unix timestamp in seconds for periodic scopes. Defaults to now. | |
| amountUnits | No | Raw integer token/native units for the spend limit. | |
| delegateMode | No | Delegation target mode. Defaults to oneshot-relayer for agent_oneshot_relay_calls. Use agent-wallet for delegated x402 endpoints that require the local agent wallet address, or custom with delegateAddress. | |
| tokenAddress | No | ERC-20 token address. Defaults to Base USDC on Base. | |
| tokenDecimals | No | ERC-20 decimals. Defaults to 6 for Base USDC. | |
| valueLimitWei | No | Optional native value cap for function-call scope as a decimal wei string. | |
| allowedTargets | No | For function-call scope, allowed contract targets. | |
| maxAmountUnits | No | Alias for amountUnits. | |
| delegateAddress | No | Optional explicit delegate override. Usually omit this: delegateMode=oneshot-relayer resolves the current 1Shot targetAddress automatically. | |
| validForSeconds | No | Optional timestamp caveat lifetime in seconds. | |
| allowedSelectors | No | For function-call scope, allowed 4-byte selectors. | |
| periodDurationSeconds | No | Period duration for periodic scopes. Defaults to 86400. |