Contract Decoding

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

  1. Go to https://dune.com/contracts/new (opens in a new tab)
  2. Select the blockchain where your contract is deployed.
  3. In the contract address field, enter your deployed contract address.
  4. 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.
  5. Leave the contract name as is if unknown.
  6. 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.
  7. 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.
  8. 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)
  9. Once submitted, it can take up to 24 hours for Dune to complete decoding.
  10. 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).