Pair Configuration

The pair configuration endpoint checks whether a trading pair is supported and returns token configuration details.

Endpoint

GET /api/v1/pair-config

Request Parameters

Parameter
Type
Required
Description

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

Field
Type
Description

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:

Token
Decimals
Min Amount Example

EGLD/WEGLD

18

0.000000001

USDC

6

0.001

USDT

6

0.001

UTK

18

0.000000001

MEX

18

0.000000001

Last updated

Was this helpful?