Overview
Token transfers record every movement of native and fungible tokens between addresses: a native token sent from one wallet to another, an ERC-20 (or SPL, TRC-20, coin) transfer emitted by a token contract, a gas payment. Each chain publishes its own transfer tables, such as<chain>.assets.fungible_token_transfers and <chain>.assets.native_token_transfers. The crosschain tables below combine them into one schema, so a query can span chains.
| To get | Use |
|---|---|
| Native and fungible token transfers on every chain | Transfers |
ERC-20 and native transfers on EVM chains, with EVM fields (log_index, transfer_type) | Fungible Token Transfers (EVM) |
| Native token transfers only | Native Token Transfers, or Native Token Transfers (EVM) for EVM chains |
| One chain’s transfers, fastest | That chain’s own table, e.g. ethereum.assets.fungible_token_transfers |
Available Tables
| Table | Description |
|---|---|
| Transfers | Native and fungible token transfers on every chain Allium indexes, in one schema. |
| Fungible Token Transfers (EVM) | ERC-20 and native token transfer events across EVM chains, unified schema. One row per transfer event. |
| Native Token Transfers | Native token transfers on every chain Allium indexes, in one schema: ETH, BNB, POL and other EVM gas tokens, plus TRX, SOL, APT and SUI. On EVM chains this includes value transfers from traces and gas payments. |
| Native Token Transfers (EVM) | Native gas token transfers across EVM chains. One row per transfer event. |
Chain Coverage
Understanding Blockchain Transfers
A short primer on understanding Allium’s transfer schema.- Introduction
- EVM Blockchains
- Solana
- Aptos
- Sui
Blockchain transactions are the fundamental building blocks of blockchain networks.
- They involve the transfer of digital assets or information from one party to another.
- When a transaction is performed and confirmed, the details of the transactions are appended to the blockchain, with a unique transaction hash accompanying the transaction.
- By indexing the blockchain, we can identify all transactions and asset transfers.
EVM transfers - Mapping Allium Schemas to EVM-Compatible Blockchains
EVM-compatible chains are blockchain networks compatible with the Ethereum Virtual Machine (EVM).In this example, we will use a USDT -> USDC transaction performed on the Ethereum network and illustrate how it maps to Allium’s data schema.select * from crosschain.assets.transfers
where chain = 'ethereum'
and block_timestamp::date = '2024-05-02'
and lower(token_type) = 'erc20'
and transaction_hash = '0xfe0ae8b623268b552f40bbdb17f07ec9bff70d4fb3139eda8580a48ac299e996'
- In this transaction, the transaction sender (transaction_from_address) interacted with the Exchange Proxy contract (transaction_to_address).
- The user (0x23b7) then sends 10,679 Tether USD from its address (from_address) -> Uniswap V3 USDC-USDT contract address (to_address).
-
In turn, the Uniswap V3 contract (from_address) sends 10,687.25 USDC from itself to the user 0x23b7 (to_address).
A user performing a swap from USDT to USDC stablecoin on the Ethereum blockchain. https://etherscan.io/tx/0xfe0ae8b623268b552f40bbdb17f07ec9bff70d4fb3139eda8580a48ac299e996

Transfer event log in their receipts.We index the entire blockchain and identify and decode these transfers. Receipt event logs are only emitted for successful transfers.

Solana transfers
Token Transfers on Solana work differently from EVM chains. To begin, you need to familiarise yourself with the following account types.Account Types- Native Accounts: Handle native programs like System, Vote, Stake.
- SPL Accounts: Store tokens other than SOL and NFTs.
- Program Accounts: Execute actions and run instructions.
- From User A to User B: Direct and similar to transactions on other blockchains.
- Compartmentalized Storage: Unlike Ethereum’s single storage for all ERC-20 tokens, Solana uses multiple compartments within a user account, each dedicated to one type of SPL token.
https://solscan.io/tx/4YWQv62igJbZaUX9ifybtZiK3vqjKim58kspoazp17wJxza4krvrSxFniuqWrojiZ2UJyXMEm1b8YaoenuovX3GM

5hjTw3.. transferred 79.87 USDT to AhhoxZ... The account/address represented here is the wallet account.Under the hood, when we toggle the “View Token Account” option, the USDT is transferred across the underlying token accounts, which are represented by token_acc_from and token_acc_to
Summary of edge cases in Solana transfers
Refer here for detailed information on edge cases when dealing with solana transfers.Aptos transfers
Token Transfers on Aptos work differently from EVM chains.- Aptos adopts a debit/credit based system, where tokens are withdrawn and deposited into accounts.
- Thus, users of Aptos token transfer data need to be aware that transfer data is reconstructed from withdrawal + deposits events recorded on the blockchain.
- Token transfers provide additional info over a plain credit/debit dataset, thus Allium has painstakingly reconstructed a token transfers dataset to enable more use cases such as tracking fund movements across the blockchain(s).
- A transaction that moves funds between several accounts can produce several transfer rows.
Details on withdrawal/deposit design
Sui transfers
Token Transfers on Sui work differently from EVM chains.- Similar to Aptos, Sui adopts a debit/credit based system, where tokens are withdrawn and deposited into objects.
- Thus, users of Sui token transfer data need to be aware that transfer data is reconstructed from events, transactions and balance changes recorded on the blockchain.
- Token transfers provide additional info over a plain credit/debit dataset, thus Allium has painstakingly reconstructed a token transfers dataset to enable more use cases such as tracking fund movements across the blockchain(s).
Details on design
Sui Architecture: there are notransfer events emittedWhile there is a TransferObjectfunction in the sui modules allowing for point-to-point transfers of assets, only transactions and balance changes are emitted and *no* transfer events are emitted. This creates a challenge where the parser has to ‘reconstruct’ point-to-point transfers using a mixture of transactions and balance changes.Coverage Limitations for
sui.assets.fungible_transfersUnlike EVM chains where there are standardized Transfer events, Sui does not support transfer events. Coverage is therefore extended one on-chain event type at a time.While we aim for high event coverage, users should expect potential discrepancies when reconciling transfer data against balance changes, as not all balance modifications may have corresponding decodable events. Our team continuously expands coverage through case-by-case analysis of event types.