What problem does it solve?
Retrieving smart contract ABIs and decoding function signatures requires querying multiple external services with inconsistent availability, forcing developers to write their own fallback and caching logic.
Core Features & Use Cases
- Composite ABI Lookup: Chain Sourcify, Etherscan, and 4Byte Directory sources with automatic fallback and in-memory caching via ABIInfoStorageFactory.
- Signature Resolution: Find function, event, and error ABIs by 4-byte selector or topic hash, including batch lookups and proxy contract resolution.
- Contract Verification: Verify contracts on Sourcify from Etherscan data or source files, and decode EVM trace calldata.
- Use Case: Given an unknown contract address on Ethereum mainnet, retrieve its full ABI with contract name and function list, automatically falling back from Sourcify to Etherscan when the contract is not verified on the first source.
Quick Start
Ask the AI to fetch the ABI for a given contract address on a specific chain using Nethereum.DataServices with the composite Sourcify and Etherscan fallback chain.