Skip to main content
Our /info and /exchange endpoints use EIP-712 signatures. Signing uses a wallet’s private key to prove that the wallet authorized a request and that its signed contents have not changed. /info data is 20 seconds old unless you send a read signature in the Authorization header; sign it once and reuse it for up to 15 minutes. /exchange requires a signature in the request body for most actions, usually as signature: { r, s, v }. Use a signing library (e.g. Viem if coding in TypeScript); the examples below show how to sign each request.

How to Sign a Request

Select an action for its signing example.

Common Signing Mistakes

An incorrect payload recovers a different address, so the server rejects the request or treats it as coming from another account. Recover the signer locally and compare it with your wallet’s address.
  • Use the correct domain, chain ID, signing format, and mainnet labels.
  • Keep decimal values as strings.
  • Lowercase the withdrawal destination and other addresses you build before signing. Never modify a protocol transfer quote.
  • Local recovery can repeat the same encoding mistake. Compare the domain, types, message, and encoded bytes.