Skip to main content

Data Services

Independent API clients for external blockchain data sources — Etherscan, Sourcify, CoinGecko, 4Byte Directory, and Chainlist. These services are already used internally by Nethereum.Wallet (portfolio, chain selection, gas pricing), Nethereum.Explorer (ABI decoding, transaction input simulation), and the EVM simulator (trace decoding), but they are fully standalone and can be used independently in any application.

What Can I Do?

I want to...GuideKey Package
Look up a contract's ABI from Sourcify or EtherscanABI RetrievalNethereum.DataServices
Verify a contract via Sourcify V2Sourcify APINethereum.DataServices
Decode unknown calldata with 4Byte DirectorySourcify APINethereum.DataServices
Store Sourcify data in PostgreSQLSourcify APINethereum.Sourcify.Database
Scan thousands of known tokens against a wallet via multicall (no indexer needed)Token PortfolioNethereum.TokenServices
Get token balances with CoinGecko pricesToken PortfolioNethereum.TokenServices
Manage a persistent token catalogToken PortfolioNethereum.TokenServices
Discover RPC endpoints and chain metadataChainlist RPCNethereum.DataServices
Get native currency info and block explorersChainlist RPCNethereum.DataServices
Query gas prices from EtherscanEtherscan APINethereum.DataServices
Query account transactions and token transfersEtherscan APINethereum.DataServices
Download bulk Sourcify data (Parquet exports)Sourcify APINethereum.DataServices
Get token prices and metadata from CoinGeckoCoinGecko APINethereum.DataServices
Map chain IDs to CoinGecko platform identifiersCoinGecko APINethereum.DataServices

Packages

PackageDescription
Nethereum.DataServicesEtherscan, Sourcify V2, CoinGecko, 4Byte Directory, Chainlist API clients + composite ABI retrieval
Nethereum.Sourcify.DatabaseEF Core (PostgreSQL) implementation for local Sourcify data storage
Nethereum.TokenServicesERC-20 token discovery, multicall balances, pricing, multi-account scanning, and token catalog

Learning Path

  1. ABI Retrieval — Start here to fetch contract ABIs from multiple sources with automatic fallback
  2. Token Portfolio — Build wallet portfolio displays with token balances and prices
  3. Chainlist RPC — Discover EVM chains, RPC endpoints, and native currencies
  4. Etherscan API — Query gas prices, account transactions, balances, and contract data
  5. Sourcify API — Verify contracts, decode selectors, and sync bulk Parquet exports
  6. CoinGecko API — Fetch token metadata and prices directly from CoinGecko