Get Token Price
Allows users to fetch current token price in TRX and USD for a specific token (un-bonded) on SunPump.
Endpoint
URL:
/pumpfun/getTokenPrice
Method:
GET
Content-Type:
application/json
API Key Header:
api-key: your-api-key
Field
Type
Required
Description
address
string
true
Token contract address
Example Request Body JSON
{
"address": "TVccuknJqKjC6bzH9WyDBrZcbzbKWmoA71", // Token Contract Address
}
Example Response JSON
{
"data": [{
"priceInTRX": 0.0025,
"priceInUSD": 0.0003735,
}],
"status": "success",
"code": "200"
}
Last updated
Was this helpful?