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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"account": "<account>",
"chain_id": "<chain_id>",
"calls": "<calls>",
"valid_until": "<valid_until>"
},
"name": "prepare_delegation"
}
}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 |