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.
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 |