Skip to main content
GET
Get PAXG swap quote

Authorizations

x-api-key
string
header
required

API key in format: pxl_<public_id>_

Query Parameters

chainId
enum<number>
required

EVM chain ID. Supported: 1 (Ethereum mainnet).

Available options:
1
Example:

1

offerAsset
string
required

Token address to offer (sell).

Example:

"0x45804880De22913dAFE09f4980848ECE6EcbAf78"

wantAsset
string
required

Token address to receive (buy).

Example:

"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"

offerAmount
string
required

Amount to offer, in the smallest unit of the token.

Example:

"1000000000000000000"

userAddress
string
required

Wallet address executing the swap.

Example:

"0x1234567890abcdef1234567890abcdef12345678"

authMethod
enum<string>
default:allowance_holder

Authorization method. allowance_holder (recommended): standard approve flow. permit2: requires signing EIP-712 typed data.

Available options:
allowance_holder,
permit2
Example:

"allowance_holder"

Response

transaction
object
required
buyAmount
string
required

Expected output amount in buy token wei.

Example:

"2500000000"

minBuyAmount
string
required

Minimum acceptable output amount accounting for slippage. Use this to verify swap execution.

Example:

"2475000000"

allowanceTarget
string
required

Contract address to approve tokens to before swapping. AllowanceHolder for default auth, Permit2 for permit2 auth.

Example:

"0x0000000000001fF3684f28c67538d4D072C22734"

currentAllowance
string

User's current allowance for the allowanceTarget contract. If less than sellAmount, approval is needed.

Example:

"0"

permit2
object

Present when authMethod=permit2. Contains EIP-712 typed data to sign before executing the swap.