Contract Decoding
Decoding a contract means giving Dune your contract’s ABI, so it can turn raw blockchain data into easy-to-read tables of events and actions. For builders on ApeChain, decoding your contract lets you and others instantly see mints, trades, and user activity in clear dashboards — making your project easier to track, analyze, and showcase across the ApeChain ecosystem.
Decode your first contract on Dune
- Go to https://dune.com/contracts/new (opens in a new tab)
- Select the blockchain where your contract is deployed.
- In the contract address field, enter your deployed contract address.
- Give the project a name (e.g., this could be the name of your NFT collection). The project name needs to be all lowercase, no spaces, use underscore if needed.
- Leave the contract name as is if unknown.
- Enable bytecode matching: If there is a project that is launching on multiple chains this option allows Dune to automatically decode and add these contracts as they are deployed.
- Decode other contracts created by the same factory: This is critical, especially for DeFi and NFT projects. Essentially puts all of the contracts created by one factory in the same table for easy querying.
- Contract ABI can be found at the bottom of the contract tab on ApeScan.io if the contract is verified. Example contract ABI for wAPE token can be found here: https://apescan.io/address/0x48b62137edfa95a428d35c09e44256a739f6b557#code (opens in a new tab)
- Once submitted, it can take up to 24 hours for Dune to complete decoding.
- If you'd like to learn more about Dune, check out their docs here https://docs.dune.com/web-app/decoding/decoding-contracts#decoding-contracts (opens in a new tab).