prepare_delegation
Prepare a scoped session-key grant for a Kernel smart account: exact call allowlist, expiry, optional rate limit. Returns the ONE EIP-712 digest the account owner signs outside MCP (this server cannot sign) — then call confirm_delegation with the signature. Auth required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| calls | Yes | allowed calls: each {target: contract address, selector: 0x + 4 bytes, value_limit: max native value in wei as decimal string} | |
| account | Yes | the Kernel smart account granting scope | |
| chain_id | Yes | 8453 (Base) or 84532 (Base Sepolia) | |
| rate_limit | No | optional {count, interval_secs}: max delegated calls per interval | |
| valid_after | No | optional start, unix seconds | |
| valid_until | Yes | expiry, unix seconds |