Base URL
Base URL: https://api.paxoslabs.com
x-api-key header. GET /v3/core/authorization requires it.
Response Format
The/v1/transit/orders/quote endpoint accepts a responseFormat query parameter:
responseFormat | data (hex) | abi / functionName / args | Use when |
|---|---|---|---|
encoded (default) | Yes | No | Signer consumes raw data (eth_sendTransaction, HSM) |
full | Yes | Yes | Debugging; need raw + decoded views |
structured | No | Yes | Encode locally (viem encodeFunctionData) |
Order Quote
GET /v1/transit/orders/quote
Returns everything needed to submit a submitOrder transaction on-chain: the contract address, ABI-encoded calldata, and the ETH value to send (the messaging fee on cross-chain routes, "0" on same-chain routes).
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
userAddress | hex string | Yes | Wallet address receiving the want asset on the destination chain |
offerAmount | decimal string | Yes | Amount of offer asset in base units. Must meet the route’s minOrderSize. |
offerAsset | hex string | Yes | Token contract address on source chain (debited) |
wantAsset | hex string | Yes | Token contract address on destination chain (credited) |
sourceChainId | integer | Yes | EVM chain ID of source chain (where tx is submitted) |
destinationChainId | integer | Yes | EVM chain ID of destination chain |
permitSignature | 0x + 130 hex chars | Conditional | EIP-2612 permit signature. Required if permitDeadline is provided. |
permitDeadline | integer | Conditional | Unix timestamp. Required if permitSignature is provided. |
integratorFee | decimal string | Conditional | Fee in offer-asset base units. Required if integratorFeeReceiver is provided. |
integratorFeeReceiver | hex string | Conditional | Address to receive integrator fee. Required if integratorFee is provided. |
distributorCode | 0x + 64 hex chars | Optional | 32-byte code tagging order source (emitted on-chain). If omitted, uses your organization’s configured distributor code when called with an API key, otherwise the zero hash. Only your organization’s code or the zero hash may be set: any other code returns 403, and a non-zero code without an API key returns 401. |
responseFormat | enum | Optional | encoded (default), full, or structured |
Response
{
"transaction": {
"to": "0x...",
"data": "0x...",
"value": "1500000000000000",
"abi": [],
"functionName": "submitOrder",
"args": []
},
"amountOut": "322097784",
"protocolFee": "62216",
"fillCostFee": "30000",
"conversionRateFee": "32216",
"conversionRateHundredthsBps": 100,
"integratorFee": "0",
"totalFees": "62216",
"estimatedLatencyMs": 300000
}
| Field | Description |
|---|---|
transaction.to | Contract address to send the transaction to (source chain) |
transaction.data | ABI-encoded calldata (present when responseFormat is encoded or full) |
transaction.value | ETH value to send (decimal string, wei): the messaging fee on cross-chain routes, "0" on same-chain routes. Always send exactly this value. |
transaction.abi | Solidity ABI fragment (present when responseFormat is full or structured) |
transaction.functionName | submitOrder or submitOrderWithPermit |
transaction.args | Positional arguments (BigInt values as decimal strings). The first is the quote as an object, including its deadline in Unix seconds |
amountOut | Net credit in want-asset base units after fees |
protocolFee | Total protocol fee in offer-asset base units. Never negative; equals fillCostFee + conversionRateFee |
fillCostFee | Part of protocolFee: estimated transfer cost to deliver funds (offer-asset base units) |
conversionRateFee | Part of protocolFee: fee to convert offer asset into want asset (offer-asset base units). On a dynamically priced route, reflects the live liquidity cost for this order amount, not a fixed rate |
conversionRateHundredthsBps | Rate applied to the offer amount for conversionRateFee, in hundredths of a bip (100 = 1 bip = 0.01%) |
integratorFee | Integrator fee in offer-asset base units ("0" when none) |
totalFees | Sum of protocolFee + integratorFee |
estimatedLatencyMs | Estimated delivery time in milliseconds. May be omitted. |
On-Chain Structs
Theargs array contains the Quote struct and signature:
struct Route {
uint32 destEID;
address offerAsset;
address wantAsset;
}
struct Quote {
Route route;
uint256 offerAmount;
address receiver;
uint256 protocolFee;
uint256 integratorFee;
address integratorFeeReceiver;
bytes32 distributorCode;
uint256 deadline;
bytes32 salt;
}
function submitOrder(Quote quote, bytes signature) payable returns (bytes32 uuid)
function submitOrderWithPermit(
Quote quote,
bytes signature,
uint256 permitDeadline,
uint8 v,
bytes32 r,
bytes32 s
) payable returns (bytes32 uuid)
Code Example (viem)
import { createWalletClient, http } from 'viem'
import { mainnet } from 'viem/chains'
const BASE = 'https://api.paxoslabs.com'
const headers = { 'x-api-key': process.env.PAXOS_LABS_API_KEY }
// 1. Fetch quote calldata
const url = new URL(`${BASE}/v1/transit/orders/quote`)
url.searchParams.set('userAddress', account.address)
url.searchParams.set('offerAmount', '322160000') // $322.16 USDC
url.searchParams.set('offerAsset', USDC_ETH)
url.searchParams.set('wantAsset', USDG_RH)
url.searchParams.set('sourceChainId', '1')
url.searchParams.set('destinationChainId', '4663')
const { transaction: tx } = await fetch(url, { headers }).then((r) => r.json())
// 2. Submit order (value is the messaging fee cross-chain, 0 same-chain)
await walletClient.sendTransaction({
to: tx.to as `0x${string}`,
data: tx.data as `0x${string}`,
value: BigInt(tx.value),
chain: mainnet,
account,
})
Routes
GET /v1/transit/routes
Lists available Transit routes.
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
filter | string | Optional | AIP-160 filter expression. Keys: sourceChainId, destinationChainId, offerAsset, wantAsset, network (MAINNET or TESTNET). Testnet routes are listed only when the filter selects them with network=TESTNET or network!=MAINNET. Without a network key, only mainnet routes are listed. |
Response
{
"routes": [
{
"sourceChainId": 1,
"destinationChainId": 4663,
"destinationChainEID": 30416,
"offerAsset": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"wantAsset": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
"minOrderSize": "322160000",
"tokenMetadataMap": {
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48": {
"chain_id": "1",
"address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"name": "USD Coin",
"symbol": "USDC",
"decimals": "6",
"token_standard": "ERC20"
}
}
}
]
}
| Field | Description |
|---|---|
sourceChainId | EVM chain ID of source chain |
destinationChainId | EVM chain ID of destination chain |
destinationChainEID | Endpoint ID of destination chain |
offerAsset | Token address on source chain |
wantAsset | Token address on destination chain |
minOrderSize | Minimum order size in offer-asset base units. On a dynamically priced route, this is a lower bound, not a guarantee: a quote for a larger amount can still be refused. |
tokenMetadataMap | Token metadata keyed by lowercase address |
Zero-Fee Subsidy Status
GET /v1/transit/subsidy
Returns whether zero-fee orders on the subsidized route, Arbitrum USDC → Arbitrum USDG, can fill right now. When they cannot, it says why and when they are expected to fill again.
available means zero-fee orders are open. It does not reserve or guarantee capacity for an order of any size.Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
distributorCode | 0x + 64 hex chars | Optional | Distributor code to check. If omitted, uses your organization’s configured distributor code when called with an API key, otherwise the zero hash. This matches the order quote. Only your organization’s code or the zero hash may be set: any other code returns 403, and a non-zero code without an API key returns 401. |
Response
{
"sourceChainId": 42161,
"destinationChainId": 42161,
"offerAsset": "0xaf88d065e77c8cc2239327c5edb3a432268e5831",
"wantAsset": "0x004b506865409877c9fa29bfb1eba929984b9bbc",
"state": "available",
"closesAt": "2026-10-30T19:00:00Z",
"quoteCutoffAt": "2026-10-30T18:30:00Z",
"allowance": {
"remainingAmount": "500000000",
"dailyCapAmount": "1000000000",
"resetsAt": "2026-10-27T04:00:00Z"
},
"observedAt": "2026-10-26T14:00:00Z"
}
| Field | Description |
|---|---|
sourceChainId, destinationChainId | EVM chain IDs of the subsidized route |
offerAsset, wantAsset | Token addresses of the subsidized route (lowercase) |
state | available, unavailable or unknown (see below) |
reason | Present when state is unavailable (see below) |
closesAt | Present when state is available. When zero-fee orders next close on the subsidy schedule (RFC 3339 UTC). null when no closure is scheduled within 14 days. |
quoteCutoffAt | Present when state is available. Zero-fee quotes are signed until this time and each one’s deadline ends by it, so request and submit before it (RFC 3339 UTC). null when closesAt is null. |
allowance | Present when state is available. The distributor code’s daily zero-fee allowance, or null when no daily limit applies to it (see below). |
expectedReopenAt | Present when state is unavailable. When zero-fee orders are expected to fill again (RFC 3339 UTC). null when no reopening is scheduled. |
observedAt | When this status was observed (RFC 3339 UTC) |
Daily Allowance
A distributor code can have a daily limit on zero-fee volume. Amounts are decimal strings in USDG base units. USDG has 6 decimals, so1000000 is 1 USDG. In the example above, the code can still fill 500 USDG at zero fee today, out of a 1,000 USDG daily limit.
| Field | Description |
|---|---|
remainingAmount | How much a new zero-fee order from this code can still fill today. Orders from this code that are already waiting to fill come first, so their amounts are already subtracted. An order submitted in the last few minutes may not be subtracted yet, so a new order can get less. |
dailyCapAmount | This code’s daily zero-fee limit |
resetsAt | When the allowance renews to dailyCapAmount (RFC 3339 UTC). The subsidy can still be closed on its schedule at that time. |
States
state | Meaning |
|---|---|
available | Zero-fee orders can fill now |
unavailable | Zero-fee orders cannot fill now; reason says why |
unknown | The status could not be determined; treat the subsidy as not guaranteed |
Reasons
reason | Meaning | expectedReopenAt |
|---|---|---|
scheduled-closure | Outside the subsidy schedule: closed from 3:00 p.m. ET before a weekend or US market holiday until midnight ET on the next business day | Exact reopen time |
not-eligible | The distributor code is not enabled for the subsidy | null |
temporarily-unavailable | Paused | null |
capacity-exhausted | Today’s zero-fee limit for this distributor code is used up, including orders that are already waiting to fill | When the next day’s limit starts. If the orders already waiting are larger than a full day’s limit, the next day can fill up too, so check again then. |
19:00:00Z in summer and 20:00:00Z in winter.
Example
const headers = { 'x-api-key': process.env.PAXOS_LABS_API_KEY }
const url = new URL('https://api.paxoslabs.com/v1/transit/subsidy')
url.searchParams.set('distributorCode', '0x0000000000000000000000000000000000000000000000000000000000000000')
const subsidy = await fetch(url, { headers }).then((r) => r.json())
Get Order
GET /v1/transit/orders/:orderId
Returns status and details for a single Transit order.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
orderId | 0x + 64 hex chars | 32-byte order ID (from OrderSubmitted event) |
Response
{
"order": {
"id": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"offerAsset": "0x...",
"wantAsset": "0x...",
"amountDue": "322097784",
"remainingAmountDue": "0",
"offerAmount": "322160000",
"receiver": "0x...",
"distributorCode": "0x0000...0000",
"destinationChainId": 4663,
"sourceChainId": 1,
"receiveTime": 1234567890,
"status": "PROCESSED",
"user": "0x...",
"createdAt": "2026-01-01T00:00:00Z",
"updatedAt": "2026-01-01T00:05:00Z",
"tokenMetadata": {},
"orderExecuteds": [
{
"id": "4663_71768178_6",
"amount": "322097784",
"remaining": "0",
"timestamp": 1234567890,
"txHash": "0x...",
"chainId": 4663
}
],
"orderForceRemoveds": []
}
}
Order Status Values
| Status | Meaning |
|---|---|
PENDING_BRIDGE | Cross-chain order submitted; not yet received on the destination chain |
PROCESSING | Queued for fulfillment, possibly partially filled (same-chain orders start here) |
PROCESSED | Fully filled |
REMOVED | The order was removed and will not be filled. Contact support regarding any unfilled amount. |
Event Arrays
| Field | Description |
|---|---|
orderExecuteds | Execution history: { id, amount, remaining, timestamp, txHash, chainId } |
orderForceRemoveds | Removal events for the order, oldest first: { id, timestamp, txHash, chainId } |
List Orders
GET /v1/transit/orders
Returns a paginated list of orders for a user address.
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
userAddress | hex string | Yes | User wallet address to filter by |
pageSize | integer | Optional | Results per page (default: 25, min: 1, max: 100) |
pageToken | string | Optional | Opaque cursor for next page |
filter | string | Optional | AIP-160 filter expression. Keys: offerAsset, wantAsset, sourceChain, destinationChain, status |
Response
{
"orders": [],
"nextPageToken": "opaque-cursor"
}
nextPageToken is null on the last page.
Error Handling
{
"error": {
"code": 400,
"message": "Order amount is below the minimum of $322.16 (322160000 base units). Please increase your offer amount.",
"status": "INVALID_ARGUMENT"
}
}
| HTTP | error.status | Action |
|---|---|---|
| 400 | INVALID_ARGUMENT | Fix request (e.g., increase offer amount) |
| 401 | UNAUTHENTICATED | Malformed API key |
| 403 | PERMISSION_DENIED | Invalid or inactive API key, or Transit not enabled for your organization |
| 404 | NOT_FOUND | Order or route not found |
| 503 | UNKNOWN | Retry with exponential backoff |
Common Errors
| Issue | Error | Fix |
|---|---|---|
Offer amount below route minOrderSize | 400 INVALID_ARGUMENT | Increase offer amount |
Amount at or above minOrderSize refused as below minimum (dynamically priced routes) | 400 INVALID_ARGUMENT | Increase to the amount stated in the message |
| Amount above what the route can currently accept (dynamically priced routes) | 400 INVALID_ARGUMENT, message starts with EXCEEDS_CAPACITY: | Decrease to the largest accepted amount in the message, or retry later if nothing is fillable |
| Amount above the route’s maximum order size | 400 INVALID_ARGUMENT, message starts with EXCEEDS_MAX_ORDER_SIZE: | Decrease to at most the maximum stated in the message; retrying later does not help |
Zero-fee quote on Arbitrum USDC → USDG when zero-fee orders are not available for the code, or after the subsidy’s quoteCutoffAt | 400 INVALID_ARGUMENT, message starts with SUBSIDY_UNAVAILABLE: | Check GET /v1/transit/subsidy for when they are available again |
| Quote cannot be priced right now | 503 | Nothing is signed; retry later |
Missing permitDeadline with permitSignature | 400 INVALID_ARGUMENT | Provide both or neither |
Missing integratorFeeReceiver with integratorFee | 400 INVALID_ARGUMENT | Provide both or neither |
Invalid distributorCode length | 400 INVALID_ARGUMENT | Must be 32 bytes (0x + 64 hex chars) |
Non-zero distributorCode without an API key | 401 UNAUTHENTICATED | Send your API key, or omit distributorCode |
distributorCode that is not your organization’s | 403 PERMISSION_DENIED | Use your organization’s code, or omit it to use the configured one |
Insufficient ETH for value | On-chain revert | Ensure wallet has ETH for gas, plus the messaging fee on cross-chain routes |
| Route not available | 404 NOT_FOUND | Check /v1/transit/routes for available pairs |
Supported Chains
| Chain | ID |
|---|---|
| Ethereum | 1 |
| Arbitrum | 42161 |
| RH Chain | 4663 |