Pair Configuration
The pair configuration endpoint checks whether a trading pair is supported and returns token configuration details.
Endpoint
GET /api/v1/pair-configRequest Parameters
from
string
Yes
Input token identifier
to
string
Yes
Output token identifier
Response Format
Supported Pair
{
"from": "WEGLD-bd4d79",
"to": "USDC-c76f1f",
"supported": true,
"decimalsIn": 18,
"decimalsOut": 6,
"minAmountIn": "1000000000",
"minAmountInShort": 0.000000001
}Unsupported Pair
No Route Available
Response Fields
from
string
Input token identifier
to
string
Output token identifier
supported
boolean
Whether the pair can be traded
decimalsIn
number
Input token decimals
decimalsOut
number
Output token decimals
minAmountIn
string
Minimum input amount (smallest units)
minAmountInShort
number
Human-readable minimum input
error
string
Error message (when supported: false)
Example Usage
Check Pair Support
JavaScript Example
Use Cases
Validate Before Quote
Always check pair configuration before requesting a quote to provide better error messages:
Build Token Selector
Use pair-config to determine which tokens can be swapped:
Token Decimals Reference
Common token decimals on MultiversX:
EGLD/WEGLD
18
0.000000001
USDC
6
0.001
USDT
6
0.001
UTK
18
0.000000001
MEX
18
0.000000001
Always use the decimals from the API response rather than hardcoded values, as some tokens may have non-standard decimals.
Last updated
Was this helpful?