Wallet and session
Connecting is the gateway from looking at PrismPerp to using it. One signature authorises a session; after that, orders sign in the browser with no wallet prompt and no gas.
From pre-view to a position
1Pre-view
LiveEvery market, chart, book, funding table and risk panel is readable without a wallet. No address is collected and the ticket computes every figure.
2Connect a wallet
LiveRainbowKit lists the EVM wallets installed in this browser, discovered over EIP-6963. Connecting shares your address and nothing else.
3Sign one session message
LiveA gas-free EIP-712 signature names a temporary key generated in this browser, its scope, your wallet's revocation epoch and a 12-hour expiry. The relayer verifies it and the header turns to Session verified; on a deployed venue the settlement contract verifies it again with every order.
4Deposit collateral
Paper venueConnecting grants nothing: an account starts at zero. On the paper venue USDG or ETH is credited as test collateral. On a deployed venue it is your wallet's own approve-and-deposit of USDG into PrismPerpVault.
5Sign and open positions
Paper venueEach order is an EIP-712 intent signed by the session key: no wallet prompt, no gas. The relayer verifies it, reserves margin, and fills it at the index.
6On-chain settlement
Built · not deployedThe relayer submits signed intents to PrismPerpSettlement.settleBatch, which verifies each one — the session grant behind it included — and settles it on its own. Built and rehearsed end to end on a local chain; waits on the testnet deployment.
This browser's session
- Wallet
- Not connected
- Session key
- None
- Scope
- trade:open trade:close trade:cancel paper:collateral
- Issued
- —
- Expires
- 12h after signing
- Signing domain
- PrismPerp · v1 · chain 4663
- Verifying contract
- Zero address · not deployed
- Orders settle on
- Paper ledger (relayer)
- Wallet modal
- RainbowKit · browser wallets
The session key is generated in this browser and stored in its localStorage under your address. Ending the session revokes it at the relayer and deletes it here. It never leaves this device.
Session key scope
What the temporary key is authorised to sign on your behalf.
It can
- Open a position within collateral you have already deposited.
- Close a position you own.
- Cancel an intent that has not settled.
- Top up or reduce test collateral, on the paper venue only. On-chain, only your wallet moves collateral.
It can never
- Withdraw on-chain collateral to any address, including yours.
- Transfer tokens, approve spenders or call other contracts.
- Outlive its expiry, or survive End session from the wallet menu.
- Be replayed: order nonces are single-use and every other action is accepted once, by hash.
Scope as signed: trade:open trade:close trade:cancel paper:collateral
What you sign, and what you do not
- Session grant
- Signed by your wallet, once. EIP-712 typed data — a message, never a transaction.
- Orders, closes, cancels
- Signed by the session key inside the browser. Your wallet is not involved.
- Gas
- None to trade: orders, closes and cancels are signed messages. On the paper venue nothing costs gas; on-chain, depositing and withdrawing are your wallet's own transactions, and the relayer pays to settle orders.
- Network
- Robinhood Chain, chain 4663. A typed signature is bound to the chain it names, so the wallet is asked to switch first.
- Where the key lives
- This browser's localStorage, under your address. It is never sent anywhere.
Before you connect anything. PrismPerp has not launched. Collateral on the paper venue is a test balance with no value: there is no real deposit to make, no token to buy and no airdrop to claim. On a deployed venue the only transactions this site asks your wallet for are a deposit into PrismPerpVault, a withdrawal from it, and revoking your session keys — never a transfer anywhere else.
