WPAXG Swaps
The WPAXG Swap API enables buying and selling of WPAXG (Wrapped Paxos Gold) tokens on Optimism. The API returns ready-to-execute transaction calldata for swaps via DEX aggregators, handling liquidity sourcing and routing automatically.Currently only available via REST API.
Supported Networks
| Network | Chain ID |
|---|---|
| Optimism | 10 |
Supported Tokens
The following tokens can be used as the offer or want asset:| Token | Address (Optimism) |
|---|---|
| WPAXG | 0x5cb5c4d5e8b184a364534bc688da0553ccf8f484 |
| USDC | 0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85 |
How It Works
- Request a quote — Call the swap quote endpoint with the offer asset, want asset, amount, and user address
- Review the quote — The response includes the expected output amount, transaction calldata, and any required token approvals
- Execute the swap — Submit the transaction using the provided calldata
Authorization Methods
The API supports two authorization methods for token approvals:allowance_holder(default) — Standard ERC-20 approve flow using the AllowanceHolder contractpermit2— Gasless approval using EIP-712 signed permits
For most use cases, the default
allowance_holder method is recommended as it’s simpler to implement.