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

Get Multiple Token Prices on Solana Mainnet Only

POSThttps://solana-gateway.moralis.io/token/:network/prices

Gets the token price (usd and native) for a given contract address and network.

PATH PARAMS
networkstringrequired
The network to query
BODY PARAM
Request Bodyobjectrequired
Complete request body as JSON object. Paste your request body or modify the example below.
Responses
201
default
400Bad Request
404Not Found
429Too Many Requests
500Internal Server Error
API KEY
curl --request POST \
--url 'https://solana-gateway.moralis.io/token/mainnet/prices' \
--header 'accept: application/json' \
--header 'X-API-Key: YOUR_API_KEY' \
--header 'content-type: application/json' \
--data '
{
"addresses": [
"6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN",
"Aygpsdr1BvL5dYjZnt8nzz1n73Ev7t7MXmfA2Z9Xpump"
]
}
'
Response Example
Empty