Why Submit Contracts for Decoding?
Decoding creates structured, queryable datasets for your protocol’s smart contracts on Dune. Once decoded, your team and the broader community can build dashboards and analytics using human-readable event and function data instead of raw bytecode.How to Submit Contracts
Submit via UI (Recommended)
Use the Dune UI for a guided submission process: https://dune.com/contracts/new.Batch Submission via API (Advanced)
If you are submitting dozens of contracts, or want to resubmit ABIs from your deploy pipeline, use the Contract Decoding API.POST /v1/contracts/decode accepts up to 100 contracts per request and returns a result per item, and GET /v1/contracts/submissions lets you track their status.
The request fields match the form. Refer to Dune’s documentation for guidance on fields like:
has_multiple_instancesis flag for for dynamic contractsis_created_by_factoryis flag for factory contracts
Read/Write scope; submissions are attributed to the user who created the key. Batches across several blockchains and ABI resubmissions require the team behind the key to be on a paid plan; see the API overview for details.
Submission Strategy
- For Chains: Encourage top protocols to submit their key contracts.
- For Protocols: Collaborate with your developers or data analysts to identify which contracts include the main logic and events.
Special Instructions by Contract Type
Proxy Contracts
If using a proxy pattern, submit the implementation contract’s ABI. Dune’s pipeline cannot handle dynamic proxies or complex patterns automatically yet.
ERC20, ERC721, ERC1155 Tokens
These contracts typically don’t need submission, as Dune already covers standard approvals and transfers. Submit only if custom events are needed.DEX Contracts
Look for below sets of contracts:- Factory Contract: should emit pool creation events.
- Pair/Pool Contract: should emit swap events.
NFT Marketplace Contracts
Submit the main marketplace contract with key events, such as:ERC721BuyOrderFilledERC721SellOrderFilledERC1155BuyOrderFilledERC1155SellOrderFilled