What problem does it solve?
Interacting with ERC-20 tokens in .NET normally requires ABI definitions and code generation. This Skill shows how to use Nethereum's built-in typed ERC-20 service to query balances, transfer tokens, and manage approvals directly from C# with no ABI or generated code.
Core Features & Use Cases
- Token Metadata & Balances: Read name, symbol, decimals, total supply, and account balances with simple async query calls, converting values with Web3.Convert.FromWei.
- Transfers & Approvals: Send tokens and manage the approve/transferFrom allowance pattern with automatic gas estimation, nonce handling, and EIP-1559 fees.
- Event & Historical Queries: Listen for Transfer events using the built-in TransferEventDTO and query balances at specific historical blocks.
- Use Case: Build a wallet feature that displays a user's USDC balance (6 decimals) and lets them transfer tokens to another address with a few lines of C#.
Quick Start
Use the erc20 skill to check the balance of a token contract for my address and transfer 100 tokens to a recipient using Nethereum in C#.