Local signing

Session Keys

Create and manage a browser-local signing key for fast delegated flows. This is application state, separate from contract method inspection and solver API reads.

Wallet
Not connected
Local session key
Generate or load a browser-local session key for Instant Layer signatures. The private key is encrypted in localStorage.
owner
Connect wallet
session key
Not initialized
expires
Not initialized
private key
Not loaded

Replace the current local session key with a private key from another device.

Sign a plain text message with the loaded session key.

This key cannot sign Instant Layer operations until it is delegated. Grant it below — one wallet prompt, relayed, no native gas.
Gasless session-key authority
Delegate trading and account-management authority to the local session key. Granting is relayed, so it costs no native gas — and because only the account owner may grant, this is the one wallet prompt the key ever needs. Every action it signs afterwards is promptless.
session key
Not initialized
status
Missing 16 of 16
delegation expires
No live grant
scope
16 selectors — trade + account

Not delegated yet

16 selectors

Account management · 13

  • allocatemoves collateral into the tradeable balance
  • deallocatemoves collateral back out of the tradeable balance
  • requestCancelWithdrawcancels a withdrawal the owner started
  • finalizeWithdrawRequestsettles a withdrawal the owner already addressed
  • requestToCancelQuotecancels a resting order
  • requestToCancelCloseRequestcancels a resting close
  • forceCancelQuoteforces a cancel the solver stalled on
  • forceCancelCloseRequestforces a close-cancel the solver stalled on
  • forceClosePositionforces a close the solver stalled on
  • approveOperationalFeeWithMultipliersets the gasless fee allowance
  • addMarginadds margin to a virtual account
  • removeMargintakes margin back out of a virtual account
  • editAccountNamerenames the sub-account

Trade lifecycle · 3

  • addMarginToNextVAfunds the margin of the position being opened
  • sendQuoteopens a position
  • requestToClosePositioncloses a position

Revocation cannot be relayed — both steps are wallet transactions that cost native gas. Starting a revoke does not take authority away immediately: the key keeps signing for the full cooldown, and stops by itself when the ETA passes — no second transaction required. Clearing the stored grant afterwards is optional bookkeeping, permissionless, and unnecessary before re-granting — a new grant wipes the stale schedule on its own.

Gasless feecomplete the inputs to estimate