This FAQ provides a guide into querying ERC404 tokens within Allium’s data models. Understanding ERC404 Token Identification The ERC-404 token standard is an experimental protocol designed to facilitate the integration of fungible tokens and Non-Fungible Tokens (NFTs), with the goal of enhancing liquidity and enabling fractional ownership. In short, it behaves both like an ERC20 token and ERC721 tokens.Documentation Index
Fetch the complete documentation index at: https://docs.allium.so/llms.txt
Use this file to discover all available pages before exploring further.
GitHub - 0xacme/ERC404
More about the ERC404 standard.
-
ERC404 tokens can be present in both
chain.raw.erc20_tokensandchain.raw.erc_721_tokens -
In short, the reason why this occurs is because our contract decoding pipeline recognises ERC404 as an ERC20 tokens, while our self-healing pipelines identifies it as an ERC721 token, as these tokens emit
Transfer()events that resembles ERC721 tokens.
chain.assets.erc721_token_transfers table if the contract deployer implements the ERC721 transfer event.
-
The
Transfer()event log for ERC404 resemble ERC721 tokens, which the includes a token ID in thetopic3 -
These transfers are tracked within the
chain.assets.erc721_token_transferstable.
chain.assets.erc721_balances table if the contract deployer implements the ERC721 transfer event.
- Our NFT balances is computed based on a cumulative sum of tokens transfersrreds
-
Since most ERC404 tokens emit a
Transfer()event, they will be found inchain.assetes.erc721_balances