OpenParable
Skip to content
← Back to skills

Chainlist Rpc

Research
chainlist-rpc

Chainlist Rpc is an Agent Skill for research published in the Nethereum/Nethereum repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Discover EVM chains, RPC endpoints, native currencies, block explorers, and faucets using the Chainlist registry via Nethereum.DataServices

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/Nethereum/Nethereum/blob/HEAD/plugins/nethereum-skills/skills/chainlist-rpc/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/chainlist-rpc, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Chainlist RPC Discovery

Discover EVM chain metadata from the Chainlist public registry using Nethereum.DataServices.

NuGet Package: Nethereum.DataServices

Installation

dotnet add package Nethereum.DataServices

Quick Start

using Nethereum.DataServices.Chainlist;

var chainlist = new ChainlistRpcApiService();

// Get all EVM chains
var allChains = await chainlist.GetAllChainsAsync();
Console.WriteLine($"Total EVM chains known: {allChains.Count}");

// Get a specific chain by ID
var ethereum = await chainlist.GetChainByIdAsync(1);
Console.WriteLine($"{ethereum.Name} (Chain ID: {ethereum.ChainId})");
Console.WriteLine($"Currency: {ethereum.NativeCurrency.Symbol}");

Available Methods

MethodReturnsDescription
GetAllChainsAsync()List<ChainlistChainInfo>Full registry of all EVM chains
GetChainByIdAsync(long chainId)ChainlistChainInfoSingle chain by numeric chain ID

ChainlistChainInfo Model

PropertyTypeDescription
NamestringChain name (e.g., "Ethereum Mainnet")
ChainstringShort identifier (e.g., "ETH")
ChainIdlongNumeric chain ID
NetworkIdlongNetwork ID
RpcList<ChainlistRpc>RPC endpoints with URL, Tracking, IsOpenSource
NativeCurrencyChainlistNativeCurrencyName, Symbol, Decimals
ExplorersList<ChainlistExplorer>Block explorers with Name, Url, Standard
FaucetsList<string>Testnet faucet URLs
FeaturesList<ChainlistFeature>Supported features (e.g., EIP-1559)
InfoURLstringChain information page
ShortNamestringShort name for display

Chain Lookup

var polygon = await chainlist.GetChainByIdAsync(137);
Console.WriteLine($"Name:     {polygon.Name}");
Console.WriteLine($"Currency: {polygon.NativeCurrency.Symbol} ({polygon.NativeCurrency.Name})");
Console.WriteLine($"Decimals: {polygon.NativeCurrency.Decimals}");

RPC Endpoints

var ethereum = await chainlist.GetChainByIdAsync(1);
foreach (var rpc in ethereum.Rpc)
{
    Console.WriteLine($"URL: {rpc.Url}, Tracking: {rpc.Tracking}, OpenSource: {rpc.IsOpenSource}");
}

Block Explorers

foreach (var explorer in ethereum.Explorers)
    Console.WriteLine($"{explorer.Name}: {explorer.Url} (Standard: {explorer.Standard})");

Filtering Chains

var chains = await chainlist.GetAllChainsAsync();

// Testnets
var testnets = chains.Where(c => c.Name.Contains("Sepolia", StringComparison.OrdinalIgnoreCase)).ToList();

// Chains with EIP-1559
var eip1559 = chains.Where(c => c.Features?.Any(f => f.Name == "EIP1559") == true).ToList();

// By native currency
var ethChains = chains.Where(c => c.NativeCurrency?.Symbol == "ETH").ToList();

Key Namespaces

  • Nethereum.DataServices.Chainlist — Service and response models

Documentation