Contract Filters And Cross-Wallet Balances

Insight API now supports two new features for NFT and token balance endpoints.
Contract Filters
v1/tokens
and v1/nfts
endpoints now supports filtering the balances of a wallet by contract addresses.
For tokens, you can add a token_address
query filter.

For NFTs, you can use contract_address
in the query params.

Both endpoints support multiple contract filters - e.g. ?contract_address=0x...&contract_address=0x...
Cross-Wallet Balances
v1/tokens
and v1/nfts
endpoints also added support for multiple owner_address
query filters so you can get the balances of multiple wallets in the same query!
For example, to get the token balances of both vitalik.eth
and barmstrong.eth
you can make the following call to Insight
curl 'https://insight.thirdweb.com/v1/tokens?chain=1&metadata=true&include_native=true&limit=5&owner_address=vitalik.eth&owner_address=barmstrong.eth'
π Learn more about Insight - itβs open source and ready to power your