Wallet Assets (GET)

Wallet Assets

This API is used to get all tokens held by a specific wallet (available for enterprise)

URL

Header: X-API-KEY

(Please do not disclose your API Key to anyone. If you are at risk of losing it, please refresh it.)

Parameters

{chain} solana / ethereum / base / bsc / tron Required
{walletAddress} wallet address Required
{page} 0 / 1 / 2 ...
{size} 10 / 20 (max 20)
{token} token address
{sortBy} value / timestamp (only for Solana)
{minValueUsd} min token value (only for Solana)

Notes

  1. X-API-KEY can be obtained in your "Dashboard", go to check: Dashboard

  2. In the paging type interface, use the next field in the return value as the query parameter for the next page (if next == null, it means that paging has ended)

Results

{
	"err": false,
	"res": [
		{
			"id": "n1v50h7hfkt0e1",
			"hold": 0,
			"cost": 0.1,
			"sold": 0.2,
			"pnl": 0.1,
			"pnlPercent": 1,
			"tokenBalance": "your wallet address",
			"tokenBalanceUI": "your wallet name",
			"tokenPriceSOL": 5,
			"currencyInfo": {
				"contract": "So11111111111111111111111111111111111111112",
				"name": "Wrapped SOL",
				"symbol": "SOL",
				"decimals": 9,
				"totalSupply": null,
				"icon": "icon url",
				"createAt": null
			},
			"tokenInfo": {
				"contract": "CzLSujWBLFsSjncfkh59rUFqvafWcY5tzedWJSuypump",
				"createAt": 1728554501806,
				"name": "token name",
				"symbol": "token symbol",
				"decimals": 6,
				"totalSupply": "1000000000000000",
				"icon": "icon url",
				"freezeAuthority": null,
				"mintAuthority": null
			},
			"links": {
				"dexscreener": "DEX Screener link"
			}
		}
	],
	"docs": "https://dbotx.com/docs"
}

Response Parameters

  • id: Asset id

  • hold: The value of this held token (SOL / ETH / BNB / TRX)

  • cost: The total buy cost of this token (SOL / ETH / BNB / TRX, only calculate transactions made through DBot)

  • sold: The total income from selling this token (SOL / ETH / BNB / TRX, only calculate transactions made through DBot)

  • pnl: Current profit and loss (SOL / ETH / BNB / TRX)

  • pnlPercent: Current profit and loss ratio (SOL / ETH / BNB / TRX)

  • tokenBalanceUI: Token balance

  • tokenPriceSOL: Crypto-denominated price of this token

  • currencyInfo: Native token information

  • tokenInfo: Token information

  • link: Related link for this token

  • contract: Token address

  • createAt: Token creation time

  • decimals: Token decimals

  • totalSupply: Total token supply

  • icon: Token icon URL

  • freezeAuthority: Is the token freezeable

  • mintAuthority: Is the token mintable

Last updated