Skip to main content

Don't have an API key yet?

Sign-up to Moralis to get your free API key and start building today.

Get Your Free API Key
Version: 2.2

Get Token Pairs by Address

GEThttps://solana-gateway.moralis.io/token/:network/:address/pairs

Get the supported pairs for a specific token address.

PATH PARAMS
networkstringrequired
The network to query
addressstringrequired
The address of the contract
limitnumber
The limit per page
cursorstring
The cursor to use for getting the next page
Responses
API KEY
// Dependencies to install:
// $ npm install node-fetch --save
// add "type": "module" to package.json

import fetch from 'node-fetch';

const options = {
method: 'GET',
headers: {
accept: 'application/json',
'X-API-Key': 'YOUR_API_KEY'
},
};

fetch('https://solana-gateway.moralis.io/token/mainnet/SRMuApVNdxXokk5GT7XD5cUUgXMBCoAz2LHeuAoKWRt/pairs', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
Response Example
{
"cursor": "string",
"pageSize": 100,
"page": 2,
"pairs": [
{
"exchangeAddress": "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8",
"exchangeName": "Raydium AMM v4",
"exchangeLogo": "https://entities-logos.s3.amazonaws.com/raydium.png",
"pairLabel": "SRM/USDT",
"pairAddress": "af8HJg2ffWoKJ6vKvkWJUJ9iWbRR83WgXs8HPs26WGr",
"usdPrice": 0.031079,
"usdPrice24hrPercentChange": 5.0889294650706685,
"usdPrice24hrUsdChange": 5.0889294650706685,
"liquidityUsd": 1.259524,
"baseToken": "SRMuApVNdxXokk5GT7XD5cUUgXMBCoAz2LHeuAoKWRt",
"quoteToken": "USDT",
"pair": [
{
"tokenAddress": "SRMuApVNdxXokk5GT7XD5cUUgXMBCoAz2LHeuAoKWRt",
"tokenName": "Serum",
"tokenSymbol": "SRM",
"tokenLogo": "",
"tokenDecimals": "6",
"pairTokenType": "token0",
"liquidityUsd": 0.635072
}
]
}
]
}