We've launched a new endpoint for fetching ERC20 tokens by wallet which includes token balances, metadata, USD prices and a whole lot more for every token 🤩
Compared to our regular token balances endpoint, this endpoint includes the following extra data points per token:
balance_formatted: decimal formatted balanceusd_price: current price of the tokenusd_price_24hr_percent_change: 24hr change as a percentageusd_price_24hr_usd_change: 24hr change in usd valueusd_value: the value of the wallet's holdingsusd_value_24hr_usd_change: 24hr change in value of the wallet's holdingsportfolio_percentage: the percentage that this token represents of the wallet's token portfolionative_token: this can betrueorfalseand is used to identify the chain's native token
It also includes some powerful new query parameters:
exclude_spam: when set totruethis will exclude all tokens marked as spam from the response (defaults tofalse)exclude_unverified_contracts: when set totruethis will exclude all tokens that are not verified on Coingecko (defaults tofalse)exclude_native: when set totruethis will exclude the chain's native token from the holdings (defaults tofalse)
Check-out the API reference for more information, and see this endpoint in action over on our YouTube channel.