documentation

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

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.