Non-custodial trading keys are the UX unlock
Signing every order with a main wallet keeps active traders on custodial exchanges. Scoped keys that can trade but never withdraw, documented by both Hyperliquid and dYdX, remove that friction without giving up custody.

The claim
The biggest UX gap between a centralised exchange and a non-custodial venue is not speed or fees. It is signing. A trader who has to confirm a wallet popup for every order, cancel and leverage change will go back to a custodial exchange. Scoped trading keys, which can trade but never withdraw, close that gap without handing custody to anyone, and they are the precondition for active non-custodial trading at scale.
The signing problem
On an on-chain venue every action is a signed message. If the user's main wallet signs each one:
- a fast-moving market becomes a queue of popups,
- automated strategies need the main key on a server, which is dangerous,
- hardware wallets, the safest option, become the slowest.
Custodial exchanges avoid this by holding the funds and authenticating with a password and an API key. That convenience is the reason many traders accept custody risk.
How scoped keys work
Hyperliquid API wallets. Hyperliquid lets a master account approve API wallets, also called agent wallets, to sign on behalf of the master account or its subaccounts. The docs state that API wallets are only used to sign. Trading actions are signed as L1 actions; withdrawals and transfers are user-signed actions that the account's own wallet signs. An approved agent can place and cancel orders, but it is not the wallet that moves funds out. The docs also describe lifecycle rules: an unnamed agent is replaced when a new unnamed one is approved, a named agent is replaced when a new one is approved under the same name, and agents expire or are pruned when the account no longer has funds. They advise generating a new agent rather than reusing old addresses.
dYdX permissioned keys. dYdX documents Permissioned Keys as an extension to the Cosmos authentication system that lets an account add custom logic for verifying transactions. Its authenticator types can, for example, allow trading on selected markets only or control permissions per subaccount.
Two venues with different architectures arrived at the same idea: separate the key that trades from the key that owns.
Evidence
- Both major on-chain order books ship scoped keys as first-class features, documented in their developer docs.
- The signing schemes are standard. Hyperliquid's user-signed actions use EIP-712 typed data, which wallets render as readable fields instead of an opaque hex string.
- Wallet discovery is standardised. EIP-6963 lets a dapp list every installed wallet instead of fighting over a single injected provider, which removes another source of friction when approving a key.
Counter-arguments and risks
- A trading key can still lose money. It cannot withdraw, but it can open bad trades. Anyone who steals it can trade the account into a loss. Scope limits the blast radius; it does not remove it.
- Key storage in the browser. A key kept in browser storage is exposed to malicious extensions and compromised machines. Hardware-backed or session-scoped keys would be better.
- Revocation must be easy. If users cannot see and remove approved keys, forgotten keys accumulate.
- Fragmentation of schemes. Every venue has its own key model, which makes cross-venue terminals harder to build.
What it means for Leverra
The Leverra terminal uses Hyperliquid agent keys today (Live). The browser creates a key, the user's wallet approves it once with approveAgent, and orders are then signed in the browser and sent straight to Hyperliquid. The key is stored in the browser's local storage per network and account, and it cannot withdraw. Leverra never holds the key or the funds. Trading on other venues through their own scoped key systems is In progress.
The agent keys primer walks through the signing in detail.
Sources
- Hyperliquid docs: Nonces and API wallets
- Hyperliquid docs: Signing
- Hyperliquid docs: Exchange endpoint
- dYdX docs: Permissioned keys
- EIP-712: Typed structured data hashing and signing
- EIP-6963: Multi Injected Provider Discovery
Research note, for information only. Not financial advice. Leverra is a permissionless on-chain prop firm for perps: capital stays with partner pools, and Leverra never holds it or guarantees payouts.


