Retrieve token balance
Retrieve a wallets balance for a particular Pump.fun token.
Path Parameters
id
(string)
The token's mint address you wish to check balance for.
walletId
(string)
The wallet address you want to check balance for.
Attributes
result
(object)
The token balance object.
mint
(string)
The token's mint address.
tokenAccount
(string)
The wallets token account address.
wallet
(string)
The wallet address.
tokenAmount
(string)
The amount the wallet holds of the token.
tokenAmountInSol
(string)
The amount the wallet holds of the token in Sol.
solscan
(object)
An object containing Solana Explorer URLs for the token.
mint
(string)
The Solana Explorer URL for the token.
tokenAccount
(string)
The Solana Explorer URL for the token account.
wallet
(string)
The Solana Explorer URL for the wallet.
pumpfun
(object)
An object containing the Pump.fun URL for the token.
mint
(string)
The Pump.fun URL for the token.
Useful for
Retrieving a wallets balance for a particular token.
Checking how much Sol a wallet holds for a particular token.
Receiving the wallets token account address.
Endpoint
https://api.tradepump.fun/v1/token/:id/balance/:walletId
Example Request
1
2
3
4
5
6
7
8
9
10
import { PumpApiClient } from 'tradepumpfun';
const client = new PumpApiClient({
apiKey: '<your-api-key>'
});
await client.token.retrieveTokenBalance({
mint: "<mint>",
wallet: "<wallet>",
});