Authenticate your backend routes
Backend routes that fetch pregenerated wallet shares, run bulk pregeneration, start validator onboarding, or trigger privileged wallet actions should authenticate every caller with your own server session or a verified Para JWT. Take user identifiers and wallet addresses from that verified session rather than trusting values sent in the request body, query string, or headers.Scope gas sponsorship and third-party proxies
When a backend route sponsors transaction fees or attaches a paid third-party API key, allowlist the exact chains, contracts, programs, or upstream paths and query parameters your app uses. Reject path traversal and unexpected parameters. For gas sponsorship, verify that the sponsor wallet only pays fees and is not referenced as an instruction account, enforce per-user budgets and rate limits, and avoid revoking and recreating active unexpired grants. Keep third-party OAuth client secrets and API keys on your server only, never in browser or mobile bundles.Protect client-side secrets and storage
Never log a user’srecoverySecret or send it to analytics or error tracking. Display it once to the user or store it securely.
If you replace Para’s default React Native storage or store a pregenerated share in a custom store such as MMKV, pass an encryptionKey backed by a per-install random key from the device Keychain or Keystore rather than a hardcoded string.
Verify signatures and review payloads
Verify Para webhook signatures against the raw request body usingverifyParaWebhook from @getpara/rest-sdk before crediting balances or running fulfillment, and make handlers idempotent because deliveries can repeat.
When verifying arbitrary wallet signatures such as Cosmos ADR-036, derive the address from the public key and reject signatures where it does not match the claimed signer address. For login flows, sign a server-issued, single-use challenge that expires.
For approval collections, read the payload with getApprovalSigningPayload, decode and display the transaction details to the signer, and require explicit confirmation before calling signApprovalTransaction.