Agent skill

Erc20

by Nethereum in Nethereum/Nethereum

Query and transfer ERC-20 tokens using Nethereum's built-in typed services (.NET/C).

MITAuto-check passedBackend & APIs

Install Erc20

skills CLI
$ npx skills add Nethereum/Nethereum --skill erc20 -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Nethereum/Nethereum erc20 --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Nethereum/Nethereum.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/nethereum-skills/skills/erc20 .claude/skills/erc20 && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
erc20
GitHub stars
2.3k
Token cost
~1.1k tokens
SKILL.md length
316 words
Files
1
Skills in repo
71
Repo updated
First seen
Licence
MIT

At a glance

Query and transfer ERC-20 tokens using Nethereum's built-in typed services (.NET/C).

  • The user asks about ERC-20 tokens
  • SKILL.md covers Get the Service, Query Token Info, Check Balance and Transfer Tokens, plus 4 more sections
  • Calls dotnet
  • Token transfers

What it does

Erc20 is an agent skill from Nethereum/Nethereum. Query and transfer ERC-20 tokens using Nethereum's built-in typed services (.NET/C). Use this skill whenever the user asks about ERC-20 tokens, token balances, token transfers, token approvals, allowances, token metadata (name, symbol, decimals), or any fungible token interaction with C or .NET.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Backend & APIs. It works with Ethereum, C# and .NET. The repository describes itself as: Ethereum .Net cross platform integration library. The licence is MIT.

When your agent uses it

  • The user asks about ERC-20 tokens
  • Token transfers
  • Token approvals
  • Token metadata (name

Example prompts

  • “/erc20”

What it can do on your machine

Read from SKILL.md and the folder at commit 229f278. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • dotnet

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • docs.nethereum.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Erc20 loads about 1.1k tokens when it runs. Until then it costs about 76 tokens; SKILL.md has 316 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~76
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Nethereum/Nethereum at commit 229f278, republished under its MIT licence (© Nethereum). 316 words, ~1,116 tokens.

Download SKILL.mdSave it as .claude/skills/erc20/SKILL.md (or your agent's skills folder).
name
erc20
description
Query and transfer ERC-20 tokens using Nethereum's built-in typed services (.NET/C#). Use this skill whenever the user asks about ERC-20 tokens, token balances, token transfers, token approvals, allowances, token metadata (name, symbol, decimals), or any fungible token interaction with C# or .NET.
user-invocable
true

ERC-20 Tokens

Nethereum has a built-in typed service for ERC-20 — no ABI needed, no code generation. Just get the service for any token contract address and call methods directly. This is the simplest way to interact with fungible tokens.

NuGet: Nethereum.Web3

bash
dotnet add package Nethereum.Web3

Get the Service

All ERC-20 operations start by getting a typed service for the token's contract address:

csharp
var erc20 = web3.Eth.ERC20.GetContractService(contractAddress);

Query Token Info

Every ERC-20 token exposes metadata. These are read-only calls — no gas, no signing needed:

csharp
var name = await erc20.NameQueryAsync();
var symbol = await erc20.SymbolQueryAsync();
var decimals = await erc20.DecimalsQueryAsync();
var totalSupply = await erc20.TotalSupplyQueryAsync();

The decimals value matters — ERC-20 tokens store balances as integers in the smallest unit. Most tokens use 18 decimals, but stablecoins like USDC use 6. Always use Web3.Convert.FromWei(value, decimals) to display human-readable amounts.

Check Balance

Balances are returned in the token's smallest unit. Use FromWei with the token's decimals for a readable value:

csharp
var balance = await erc20.BalanceOfQueryAsync(myAddress);
Console.WriteLine($"Balance: {Web3.Convert.FromWei(balance, decimals)} {symbol}");

Transfer Tokens

Transfers require a Web3 instance connected with a funded account. The amount must be in the smallest unit — use ToWei with the token's decimals:

csharp
var receipt = await erc20.TransferRequestAndWaitForReceiptAsync(
    recipientAddress,
    Web3.Convert.ToWei(100, decimals));

Gas estimation, nonce, and EIP-1559 fees are handled automatically.

Approve and TransferFrom

The approve/transferFrom pattern lets another address (like a DEX or smart contract) spend your tokens. First approve a spending limit, then the spender calls transferFrom:

csharp
// Approve the spender
var approveReceipt = await erc20.ApproveRequestAndWaitForReceiptAsync(
    spenderAddress,
    Web3.Convert.ToWei(1000, decimals));

// Check allowance
var allowance = await erc20.AllowanceQueryAsync(myAddress, spenderAddress);

Be careful with approvals — approving a large amount gives the spender permission to transfer up to that amount at any time.

Listen for Transfer Events

ERC-20 transfers emit a Transfer event. Nethereum ships a built-in TransferEventDTO so you don't need to define your own:

csharp
using Nethereum.Contracts.Standards.ERC20.ContractDefinition;

var transferEvent = web3.Eth.GetEvent<TransferEventDTO>(contractAddress);
var filter = transferEvent.CreateFilterInput(
    BlockParameter.CreateEarliest(),
    BlockParameter.CreateLatest());

var transfers = await transferEvent.GetAllChangesAsync(filter);
foreach (var t in transfers)
{
    Console.WriteLine($"{t.Event.From} -> {t.Event.To}: {Web3.Convert.FromWei(t.Event.Value, decimals)}");
}

Historical Queries

All query methods accept an optional BlockParameter to read state at a specific block. The node must have archive state for the requested block:

csharp
var historicalBalance = await erc20.BalanceOfQueryAsync(
    myAddress,
    new BlockParameter(15_000_000));

Available Methods

MethodReturnsDescription
NameQueryAsync()stringToken name
SymbolQueryAsync()stringToken symbol
DecimalsQueryAsync()byteDecimal places
TotalSupplyQueryAsync()BigIntegerTotal supply in wei
BalanceOfQueryAsync(address)BigIntegerBalance in wei
AllowanceQueryAsync(owner, spender)BigIntegerApproved amount
TransferRequestAndWaitForReceiptAsync(to, amount)TransactionReceiptTransfer tokens
ApproveRequestAndWaitForReceiptAsync(spender, amount)TransactionReceiptApprove spending
TransferFromRequestAndWaitForReceiptAsync(from, to, amount)TransactionReceiptTransfer on behalf

For full documentation, see: https://docs.nethereum.com/docs/smart-contracts/erc20

© Nethereum, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/nethereum-skills/skills/erc20 of Nethereum/Nethereum.

Open the folder on GitHubat commit 229f278

Compare with similar skills

Erc20 next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Erc20 compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Erc20 this skillNethereum/Nethereum2.3k—~1.1kAutomated safety check: PassMIT
.NET API Compatibility DesignAaronontheweb/dotnet-skills1.2k2 repos~2.7kAutomated safety check: PassMIT
Tsp Csharpquerylenshq/ef-querylens225—~1.3kAutomated safety check: PassMIT
XML DocumentationVonage/vonage-dotnet-sdk118—~2.7kAutomated safety check: PassApache-2.0
Dotnet 10 Csharp 14sketch7/FluentlyHttpClient121—~2.2kAutomated safety check: PassMIT
DisCatSharp Discord DevelopmentAiko-IT-Systems/DisCatSharp140—~1.2kAutomated safety check: PassMIT

Similar skills

  • .NET API Compatibility Design

    Aaronontheweb/dotnet-skills

    Applies extend-only design rules to NuGet packages and distributed systems, covering source, binary and wire compatibility and how to deprecate members safely.

    1.2k GitHub starsUsed in 2 repos~2.7k tokens
    Backend & APIsAuto-check passed
  • Tsp Csharp

    querylenshq/ef-querylens

    Comprehensive C and .NET development skill for TSP projects.

    225 GitHub stars~1.3k tokensUpdated 1 mo ago
    Backend & APIsAuto-check passed
  • XML Documentation

    Vonage/vonage-dotnet-sdk

    Improve XML documentation in the Vonage .NET SDK. An agent skill from Vonage/vonage-dotnet-sdk.

    118 GitHub stars~2.7k tokensUpdated 3 mo ago
    Backend & APIsAuto-check passed
  • Dotnet 10 Csharp 14

    sketch7/FluentlyHttpClient

    A skill your agent uses when building .NET 10 or C 14 applications; when using minimal APIs, modular monolith patterns, or feature folders; when implementing HTTP resilience, Options pattern…

    121 GitHub stars~2.2k tokensUpdated 19 days ago
    Backend & APIsAuto-check passed
  • DisCatSharp Discord Development

    Aiko-IT-Systems/DisCatSharp

    Helps build, explain and troubleshoot C# Discord apps on DisCatSharp, answering from the project's installed version and the library's documentation rather than guesses.

    140 GitHub stars~1.2k tokensUpdated 2 days ago
    Backend & APIsAuto-check passed
  • Foundationdb Advanced Layers

    SnowBankSDK/foundationdb-dotnet-client

    Advanced engineering for sophisticated FoundationDB layers with the .NET client (FoundationDB.Client / SnowBank) — the cluster model and transaction lifecycle (proxies, resolvers, tlogs, storage…

    158 GitHub stars~3.4k tokensUpdated 6 days ago
    Backend & APIsAuto-check passed

More from Nethereum/Nethereum

All 71 skills in this repo
  • Aa Batching Paymasters

    Nethereum/Nethereum

    Help users batch multiple calls into a single UserOperation and sponsor gas with paymasters using Nethereum Account Abstraction.

    2.3k GitHub stars~1.5k tokensUpdated 2 days ago
    Auto-check passed
  • Aa Bundler

    Nethereum/Nethereum

    Help users run an ERC-4337 bundler using Nethereum — set up in-process or standalone bundlers with mempool, validation, reputation, and JSON-RPC server.

    2.3k GitHub stars~1.2k tokensUpdated 2 days ago
    Auto-check passed
  • Abi Encoding

    Nethereum/Nethereum

    Encode and decode Ethereum ABI data with Nethereum. An agent skill from Nethereum/Nethereum.

    2.3k GitHub stars~1.3k tokensUpdated 2 days ago
    Auto-check passed
  • Abi Retrieval

    Nethereum/Nethereum

    Fetch contract ABIs from Sourcify, Etherscan, and 4Byte Directory using the composite ABIInfoStorage pattern (.NET/C).

    2.3k GitHub stars~1.5k tokensUpdated 2 days ago
    Auto-check passed
  • Account Abstraction

    Nethereum/Nethereum

    Help users implement ERC-4337 Account Abstraction with Nethereum — send UserOperations, use smart accounts, route contract calls through a bundler, enable gasless transactions, or work with AA in…

    2.3k GitHub stars~1.7k tokensUpdated 2 days ago
    Auto-check passed
  • Address Utils

    Nethereum/Nethereum

    Validate and format Ethereum addresses with Nethereum. An agent skill from Nethereum/Nethereum.

    2.3k GitHub stars~1.2k tokensUpdated 2 days ago
    Auto-check passed

Works with

Categories

Questions about Erc20

What does Erc20 do?

Query and transfer ERC-20 tokens using Nethereum's built-in typed services (.NET/C). Erc20 is an agent skill from Nethereum/Nethereum.NET/C).

When should I use Erc20?

Erc20 fits situations like: the user asks about ERC-20 tokens; token transfers; token approvals; token metadata (name.

How do I install Erc20 in Claude Code?

Run `npx skills add Nethereum/Nethereum --skill erc20 -a claude-code`. Or copy the skill folder (plugins/nethereum-skills/skills/erc20 in Nethereum/Nethereum) into .claude/skills/erc20 in your project. Claude Code loads it when a task matches its description.

How do I install Erc20 in Codex?

Run `npx skills add Nethereum/Nethereum --skill erc20 -a codex`. Or copy the skill folder (plugins/nethereum-skills/skills/erc20 in Nethereum/Nethereum) into .agents/skills/erc20 in your project. Codex loads it when a task matches its description.

Can I use Erc20 in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Nethereum/Nethereum --skill erc20 -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/erc20, .gemini/skills/erc20, .github/skills/erc20 and .opencode/skills/erc20 in your project.

What does Erc20 need to run?

Going by SKILL.md and its folder, Erc20 needs the command-line tools its instructions call (dotnet).

Does Erc20 access the network?

SKILL.md names 1 domain. As links in the text: docs.nethereum.com. This is read from the text; nothing was executed.

Is Erc20 safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Erc20 use?

Erc20 is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Erc20 use?

About 1.1k tokens (SKILL.md is roughly 4.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Erc20?

Skills that share tags, products or a category with Erc20: .NET API Compatibility Design (Aaronontheweb/dotnet-skills, 1.2k stars), Tsp Csharp (querylenshq/ef-querylens, 225 stars), XML Documentation (Vonage/vonage-dotnet-sdk, 118 stars) and Dotnet 10 Csharp 14 (sketch7/FluentlyHttpClient, 121 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Erc20?

Nethereum (a GitHub organization) maintains it in Nethereum/Nethereum, which has 2,260 GitHub stars. The repository holds 71 skills in this directory. The repository was last updated on October 5, 2026.

Source: Nethereum/Nethereum on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.