Currently our assets schema includes trc20 token transfers.

The tron.assets.trc20_token_transfers table contains the details of all transfer events of TRC20 tokens on the Tron blockchain.

Sample Query

Finding stablecoin movement volumes by entities on Tron.

select

    date_trunc('month', block_timestamp) as date,

    from_project,

    token_symbol,

    sum(amount) as volume

from

    (

        select

            block_timestamp,

            from_address,

            sender.project as from_project,

            sender.category as from_category,

            to_address,

            recipient.project as to_project,

            recipient.category as to_category,

            token_symbol,

            amount,

            usd_amount

        from

            tron.assets.trc20_token_transfers

            left join tron.identity.entities sender on sender.address = from_address

            left join tron.identity.entities recipient on recipient.address = to_address

        where

            1 = 1

            and block_timestamp >= '2021-01-01'

            and token_address in (

                'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t', -- Tether USD

                'TEkxiTehnzSmSe2XqrBj4w32RUN966rdz8', -- Circle USDC

                'TUpMhErZL2fhh4sVNULAbNKLokS4GjC1F4' -- TrueUSD

            ) 

    )

group by 1,2,3

Table Columns

Column NameDescriptionExample
from_addressAddress where the token is being transferred from.TYE218dMfzo2TH348AbKyHD2G8PjGo7ESS
to_addressAddress where the token is being transferred to.T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb
token_addressToken address of the asset transferred.TEkxiTehnzSmSe2XqrBj4w32RUN966rdz8
token_nameName of the asset transferred.USD Coin
token_symbolToken symbol of the asset transferred.USDC
raw_amountAmount of tokens moved (unnormalized).1,101,950,000
raw_amount_strAmount of tokens moved (unnormalized) in string1101950000
amountAmount of token moved, normalized.1,101.95
amount_strAmount of token moved, normalized in string.1101.95
usd_amountThe amount of tokens moved, in $USD.1,101.95
usd_exchange_rateThe exchange rate used to calculate the usd_value.1
transaction_from_addressThe address of the sending party of this transaction.TYE218dMfzo2TH348AbKyHD2G8PjGo7ESS
transaction_to_addressThe address of the receiving party of this transaction (could be a contract address).TEkxiTehnzSmSe2XqrBj4w32RUN966rdz8
transaction_hashTransaction hash that this transfer belongs to.0x8f1b88cc42fd0923bcb6460c631ac319eb18793e45feb3fa3bd2087dafe273f1
log_indexThe log index that corresponds to this transfer.9
block_timestampThe time when the block that contains this transaction was included on the blockchain.2021-07-04 11:29:30
block_numberThe block number that the corresponding transaction of this transfer belongs to.31,641,759
block_hashThe block hash that the corresponding transaction of this transfer belongs to.0x0000000001e2d09ff8d7322804797a046afb97433cfedc15f46b057df5c47dee
unique_idUnique id generated to each transfer. Includes transaction hash and log index.txn-0x8f1b88cc42fd0923bcb6460c631ac319eb18793e45feb3fa3bd2087dafe273f1_log_index-9