Base URL
/v2.
Authentication
Include your API key in thex-api-key header on every request:
pxl_<public_id>_<secret>. Obtain one from the Paxos Labs dashboard.
Response Format
The three transaction-preparation endpoints (deposit, withdraw, withdraw/cancel) accept a responseFormat query parameter that controls which fields appear in the response:
| Format | data (hex calldata) | abi / functionName / args | Default |
|---|---|---|---|
encoded | Yes | No | Yes |
full | Yes | Yes | |
structured | No | Yes |
encoded (default)
Returns only the ABI-encoded calldata hex string. Use this when your signer accepts raw data fields (e.g. eth_sendTransaction).
full
Returns encoded calldata plus the ABI fragment, function name, and decoded args. Useful for debugging or when you need both representations.
structured
Returns the ABI fragment, function name, and args without encoded calldata. Use this when your library handles encoding (e.g. viem encodeFunctionData, ethers interface.encodeFunctionData).
Error Handling
All error responses use a standard envelope:| HTTP Status | error.status | Meaning |
|---|---|---|
| 400 | INVALID_ARGUMENT | Malformed or missing parameters |
| 401 | UNAUTHENTICATED | Missing or malformed API key |
| 403 | PERMISSION_DENIED | Invalid, inactive, or expired API key |
| 404 | NOT_FOUND | Vault not found for the given address + chain |
| 429 | RESOURCE_EXHAUSTED | Rate limit exceeded |
| 503 | INTERNAL | RPC or upstream service unavailable |