1-Click Trading
Sign one off-chain authorization with your main wallet, then place and cancel orders instantly using a scoped browser session key — no wallet popups and no gas to enable.
How it works
Enabling 1-click trading generates a fresh session key stored locally in your browser and prompts your main wallet to sign an EIP-712 ApproveAgent message (zero gas). That signed authorization is sent alongside each order placement, cancellation, and cancel-all request as agent_auth.
When a trade settles on chain, settleFill cryptographically verifies that the order was signed by agentAddress, that ApproveAgent recovers to order.trader, and that the authorization has not expired.
Scope & expiration
- Main wallet custody:
order.traderalways remains your main wallet, and all balances, positions, and reserves stay on your main address. - Custom lifetime: Choose an authorization duration between 1 and 180 days (default 30 days; contract maximum is 6 months). Open 1-click orders are automatically cancelled roughly one hour before the session expires.
- Restricted permissions: Session keys can only sign order placements and cancellations (see Orders). Withdraw, split, merge, and redeem always require your main wallet — see Balances.
Revoking a session key
Clicking Revoke submits
Exchange.revokeAgent(session) on chain from your main wallet (costs gas) and wipes the local browser key. Once revoked, that session address can never place or settle orders for your wallet again. Re-enabling 1-click trading generates a brand-new session address.