Skip to main content

Base URL

All endpoints are versioned under /v2.

Authentication

Include your API key in the x-api-key header on every request:
API keys use the format 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:

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: