Prepare session grant
prepare_mandate_grant_sessionLet a session key act for the account, inside its limits, on the listed markets until it expires. Replacing a session restarts its mint budget. The key is never held by this server. Returns UNSIGNED transaction data for the owner's own wallet; simulated first and refused if it would revert. Never signs or sends.
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>",
"sessionKey": "<sessionKey>",
"markets": "<markets>",
"validForSeconds": "<validForSeconds>"
},
"name": "prepare_mandate_grant_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | Mandate account address (0x...) | |
| actions | No | Optional: narrow the actions. Default all nine | |
| markets | Yes | Markets the key may use. Each needs a cap from prepare_mandate_set_limits | |
| sessionKey | Yes | The key to allow (0x...) | |
| validForSeconds | Yes | How long the session lasts, from now |