The fungible balances table contains historical native token (e.g. ETH, MATIC, AVAX) and ERC20 tokens the balance of all addresses, at block height that has a balance change for the particularly address.

Sample Query

Query wallet Balance of a wallet by token address.

select * from ethereum.assets_fungible_balances

where address = '0xa27cef8af2b6575903b676e5644657fae96f491f'

and token_address = '0x0000000000000000000000000000000000000000' -- ETH

Table Columns

Column NameTypeDescriptionExample
addressvarcharAddress of the account.0xa27cef8af2b6575903b676e5644657fae96f491f
token_addressvarchar

Token address. Native ETH is represented as 0x0000000000000000000000000000000000000000

0x0000000000000000000000000000000000000000
raw_balancenumeric(512)

Unormalized token balance. For ETH, balance of eth in wei.

216086875347586955
block_timestamptimestamp

The timestamp of the block that that resulted in the balance.

2023-12-11T07:12:47+00:00
block_numberbigint

The number of the block that resulted in the balance.

18761397
block_hashvarchar

The hash of the block that resulted in the balance.

0xcd4dd641a4daad4baa1b7127aee6216a99e8d5bb01614e68241f9d2b977dd967