Native Balance Support In Insight

Insight API adds a new token balances endpoint that also supports native token balances. It will replace the current ERC-20 balance endpoint which is being deprecated.
This endpoint is being deprecated in favor of v1/tokens
to be better aligned with the NFT endpoints and make it easier to expand the capabilities of the new endpoint in the future.
v1/tokens
has full parity with the ERC-20 balances endpoint but also adds support for native token balances and also returns the owner_address
in the response.
Native balances are always returned at the beginning of the response. If they are not needed, they can be removed from the response by setting the include_native
query param to false
.
The native token address is 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
The new endpoint is available in our playground.

๐ Learn more about Insight - itโs open source and ready to power your applications!