Skip to main content
GET
Get submitOrder calldata

Authorizations

x-api-key
string
header
required

API key in format: pxl_<public_id>_

Query Parameters

userAddress
string
required

User wallet address that receives the wantAsset on the destination chain.

Example:

"0x1234567890abcdef1234567890abcdef12345678"

offerAmount
string
required

Amount of offerAsset to send, in token base units (decimal string). Minimum order size is $5 USD. For example, with USDC (6 decimals), the minimum is 5000000 base units.

Example:

"50000000"

offerAsset
string
required

Asset being offered (debited on the source chain).

Example:

"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"

wantAsset
string
required

Asset desired (credited on the destination chain).

Example:

"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"

destinationChainId
number
required

EVM chain ID of the destination chain. Server translates this to the destination chain EID.

Example:

8453

sourceChainId
number
required

EVM chain ID of the source chain (where the transaction is submitted).

Example:

1

permitSignature
string

EIP-2612 permit signature (65-byte hex, from the authorize step). Required when permitDeadline is provided.

Example:

"0xabc..."

permitDeadline
number

Permit deadline as Unix timestamp. Required when permitSignature is provided.

Example:

9999999999

integratorFee
string

Integrator fee charged on offerAsset in the asset's base units. For example, if the offerAsset is USDC, which has 6 decimals, provide a value of 10000 to charge a fee of $0.01. When provided, integratorFeeReceiver is required.

Example:

"10000"

integratorFeeReceiver
string

Address to receive the integrator fee. Required when integratorFee is provided.

Example:

"0x1234567890abcdef1234567890abcdef12345678"

distributorCode
string

Optional 32-byte hex code (0x + 64 hex chars) tagging the source of funds. Emitted on-chain with the order. When omitted, uses the organization's default distributor code if one is configured, otherwise defaults to the zero hash.

Example:

"0x0000000000000000000000000000000000000000000000000000000000000000"

responseFormat
enum<string>

Controls which fields appear in the transaction response. "encoded" (default): only ABI-encoded calldata. "full": encoded calldata plus ABI fragment, function name, and args. "structured": ABI fragment, function name, and args only (no encoded data).

Available options:
encoded,
full,
structured

Response

transaction
object
required
amountOut
string
required

Net amount credited toward the order after fees, in want-asset base units (decimal string). Equals offerAmount - protocolFee and integratorFee, converted to want-asset base units.

Example:

"992500"

protocolFee
string
required

Protocol fee charged on the order, in offer-asset base units (decimal string).

Example:

"2500"

integratorFee
string
required

Integrator fee charged on the order, in offer-asset base units (decimal string). "0" when no integrator fee applies.

Example:

"5000"

totalFees
string
required

Total fees charged on the order, in offer-asset base units (decimal string). Sum of protocolFee and integratorFee.

Example:

"7500"

estimatedLatencyMs
number

Estimated time for order fulfillment in milliseconds, based on the asset pair and order volume. Undefined when no SLA data is available for the route.

Example:

300000