Documentation Index
Fetch the complete documentation index at: https://docs.getpara.com/llms.txt
Use this file to discover all available pages before exploring further.
@getpara/rest-sdk is Para’s typed SDK for REST API wallets. Use it from trusted backend code when your server owns
API-key-backed wallet creation, lookup, signing, transfers, and transaction history.
Install
fetch.
Install adapter peers only when you use those subpaths:
Choose the Right SDK
| Use case | Package |
|---|---|
| API-key-backed programmatic wallets, REST pregen wallets, typed REST signing | @getpara/rest-sdk |
Share-backed server flows, imported user sessions, migrateWalletShare() encryption | @getpara/server-sdk |
| User authentication, wallet UI, browser/mobile signing | Web, React, React Native, Swift, or Flutter SDKs |
Core Client
env accepts PROD, BETA, SANDBOX, or { baseUrl }. Each request sends X-API-Key and X-Request-Id.
Idempotency-Key is caller-supplied; the SDK does not retry requests or generate idempotency keys internally.
Pass AbortSignal per call when your server needs a request deadline:
Adapters
{ raw: bytes } when a 0x... value should be signed as bytes.
The Solana adapter implements Solana v2 signer traits by signing message bytes through sign-raw. For broadcasted
transactions, call para.signTransaction(walletId, { transaction, broadcast: true }) or para.transfer(...).
Errors
ParaRestValidationError is thrown before fetch for missing local required fields or unsupported adapter inputs.
ParaRestSerializationError means the request body cannot be JSON serialized. HTTP errors become ParaRestError with
status, code, requestId, and parsed body.
Example
The typed SDK example creates REST wallets and demonstrates core client, ethers, viem, and Solana adapters:examples-hub/server/rest-with-node when you want to inspect the raw HTTP baseline.
Trust Boundary
REST signing uses the wallet ID and your partner API key. Your backend is responsible for deciding which end user or job is allowed to request a wallet operation before calling Para. The SDK validates local required fields and normalizes adapter inputs, but it does not independently reconstruct or audit every signed transaction returned by REST.Non-goals
The REST SDK does not include browser connectors, React hooks, wagmi or RainbowKit integration, mobile auth, hosted UI, client-side sessions, automatic retries, or user-share encryption helpers. Use@getpara/server-sdk for
migrateWalletShare() and share-backed server flows.
Sandbox Probe Fixture
The package includes a sandbox signature-format probe for maintainers. Run it only whenPARA_API_KEY is available.
Its sanitized fixture records observed sandbox behavior for tests; the supported public contract remains the REST API
reference and live backend behavior.