ERC-20 token — Solidity contract

A fixed-supply fungible token with allowances — the whole ERC-20 surface in one readable file. One file, no imports, 58 lines. Compiled with solc 0.8.36 on every build. Labelled community: written for this library, not independently audited.

What it does

9 functions (6 read, 3 write), 2 events, 2291 bytes of creation bytecode. Constructor: string name, string symbol, uint256 initialSupply.

Use it

Open it in the IDE to compile and deploy through your wallet, or fork it into a workspace and change it. The ABI explorer beside this page calls a deployed instance at any address.