Installing sessions
To enable a session: Examples on this page use@rhinestone/sdk, where rhinestone is the RhinestoneSDK instance from Create a session with a custom setup.
Session that createSession returned, or the one you stored; do not rebuild it from its definition.
These no-delivery examples require fee and gas sponsorship. chain must match the session’s chain. Sign and submit enable/disable transactions with the account owner; the transfer example assumes the account already holds USDC.
You can also enable a session with a signature. See Multi-chain sessions for details.
Re-enable a session with a lifetime budget
A permit’smaxAmount without oneTimeUse is a lifetime budget (session.lifetimeBudget). Enabling the session again while it is already enabled resets that budget, so getSessionDetails refuses such a session:
getSessionDetails. Pass allowBudgetReset only when you intend to give the session a fresh budget:
Checking session status
To check if a session is enabled:Using sessions
To authorize a transaction with a session key you’ve enabled before:allowFees.
You can also enable and use the session key in one transaction with the
enable mode.
Disabling a session
To disable a single enabled session, usedisableSession. This only removes a single session: to uninstall the validator entirely (and every session with it), use disable instead.