Validate a MultiversX pair, request a swap quote, and verify the response fields needed before signing.
Prerequisites
1. Validate The Pair
Call /api/v1/pair-config before quoting so your client has decimals and minimum input.
cURL
TypeScript
Python
Rust
Expected response:
2. Request A Quote
Quote 1 WEGLD to USDC. 1000000000000000000 is 1 WEGLD at 18 decimals.
cURL
TypeScript
Python
Rust
Inspect these fields:
3. Request Transaction Data
Pass sender only when the user is ready to sign.
The response can include:
Do not reuse txData across quote requests. It encodes route and slippage state from that request.
Verify
You have a valid quickstart result when:
/api/v1/pair-config returns supported: true.
amountIn is greater than or equal to minAmountIn.
/api/v1/quote returns non-zero amountOut.
amountOutMin matches the slippage shown to the user.
- If
transaction is present, transaction.sender matches the connected wallet.
Common Failure
Next Steps