Skip to main content

💰❓ Estimate Tokens in Wallet Endpoint

Overview

The /estimate-tokens-in-wallet/:mint endpoint estimates the number of tokens in a specified wallet and provides the estimated SOL value for those tokens. This endpoint helps developers understand the token holdings and their equivalent SOL value. Use this endpoint to figure out if you're winning or loosing sols!

Endpoint

POST /estimate-tokens-in-wallet/:mint

Request Parameters

[ The request parameters should be included in the URL path and request body:

URL Parameters

ParameterTypeRequiredDescriptionExample
mintstringYesThe mint public key of the token in base58 format."ACN...C8rhpump"

Request Body

PropertyTypeRequiredDescriptionExample
privateKeystringYesThe private key of the wallet in base58 format."5KQwdi...Knk"

Response

A successful response will be a JSON object containing the estimated token details and the SOL value in the specified wallet. The response structure is as follows:

PropertyTypeDescription
statusnumberStatus code of the response.
walletobjectObject containing wallet token details.
wallet.tokensInWalletnumberNumber of tokens in the wallet.
wallet.estimatedSolsValuenumberEstimated SOL value for the tokens in the wallet.
tokenobjectObject containing token details.
token.mintstringThe mint public key of the token.
token.namestringThe name of the token.
token.symbolstringThe symbol of the token.
token.descriptionstringDescription of the token.
token.image_uristringURI to the image of the token.
token.twitterstringTwitter link associated with the token.
token.telegramstringTelegram link associated with the token.
token.creatorstringPublic key of the token creator.
token.created_timestampnumberTimestamp of when the token was created.
token.raydium_poolstringRaydium pool associated with the token, if any.
token.completebooleanIndicates if the token information is complete.
token.virtual_sol_reservesnumberVirtual SOL reserves associated with the token.
token.virtual_token_reservesnumberVirtual token reserves associated with the token.
token.websitestringWebsite link associated with the token.
token.king_of_the_hill_timestampnumberTimestamp for the king of the hill event.
token.total_supplynumberTotal supply of the token.
token.reply_countnumberNumber of replies associated with the token.
token.last_replynumberTimestamp of the last reply.
token.nsfwbooleanIndicates if the token is not safe for work.
token.market_capnumberMarket capitalization of the token.
token.usd_market_capnumberUSD market capitalization of the token.
token.signaturestringSignature associated with the token data.
token.timestampnumberTimestamp of the token data retrieval.

Code Examples

const fetch = require('node-fetch');

const url = "https://pumptrader.fun/estimate-tokens-in-wallet/13RtH68krMP1hJyuF5RaGKcFn575hrWxpoD2zL4cJ1r9";
const payload = {
privateKey: "D17iK3qHPHFuNXLoGQyB1ymhUGWRBU8YGHQnq9hahBcD"
};

fetch(url, {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify(payload)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));

Response Example


"status": 200,
"wallet": {
"tokensInWallet": 2617946.41841,
"estimatedSolsValue": 1.4617884187
},
"token": {
"mint": "ACN...C8rhpump",
"name": "Token Name",
"symbol": "SYMB",
"description": "Some Description",
"image_uri": "https://cf-ipfs.com/ipfs/imageuri",
"twitter": null,
"telegram": null,
"creator": "ZIu..Ax4",
"created_timestamp": 1717702972753,
"raydium_pool": null,
"complete": false,
"virtual_sol_reserves": 35994846574,
"virtual_token_reserves": 894294688349769,
"website": null,
"king_of_the_hill_timestamp": 1717705374642,
"total_supply": 1000000000000000,
"reply_count": 48,
"last_reply": 1717710645270,
"nsfw": false,
"market_cap": 40.249424538,
"usd_market_cap": 6862.526883729,
"signature": "4T1AxQFXgypfwuwCZbZ3j3fGpo1hNcPqo9CxN94ZDxa2BGyY6yqbU19Vnm5Ns95g5TiB75nkGswyYo6rKXpyhdFj",
"timestamp": 1716577319165
}
}