cURL
curl --request GET \ --url https://solana-gateway.moralis.io/token/{network}/{address}/price \ --header 'X-Api-Key: <api-key>'
{ "tokenAddress": "<string>", "pairAddress": "<string>", "nativePrice": { "value": "<string>", "decimals": 123, "name": "<string>", "symbol": "<string>" }, "usdPrice": 123, "exchangeAddress": "<string>", "exchangeName": "<string>", "logo": "<string>", "name": "<string>", "symbol": "<string>", "score": 123, "usdPrice24h": 123, "usdPrice24hrUsdChange": 123, "usdPrice24hrPercentChange": 123, "isVerifiedContract": true }
Gets the token price (usd and native) for a given contract address and network.
The network to query
mainnet
devnet
The address to query
"So11111111111111111111111111111111111111112"