Everwhy Open Everwhy
Computing

What does it take to make a token, and what does the law say about selling one?

Create Your Own Token 301 · about 13 minutes a level

How tokens work on Ethereum and how to build one responsibly: the difference between a blockchain's own coin and a token, the ERC-20 standard function by function, writing and testing a token in Solidity, deploying it to a test network, supply and distribution designs explained neutrally, security and audits, and the legal reality that offering tokens to the public is often a regulated securities offering. Everything is built on test networks with free test coins, and nothing here is legal or financial advice.

Open in Everwhy Continue on the web

Go deeper, level by level

  1. Coins and tokens: Coins versus tokens, What tokens can stand for, A short history of tokens
  2. The ERC-20 standard in detail: The ERC-20 interface, function by function, Decimals, base units and display, Allowances: approve and transferFrom, Beyond the basics: permits, votes and more
  3. Writing a token: A minimal ERC-20 from scratch, Building on an audited library, Owners, roles and admin powers
  4. Testing and test-deploying: Testing a token, Deploying to a test network, Using your token: wallets, explorers and scripts
  5. Supply and distribution: Supply models: fixed, capped, minted and burned, Allocations, vesting and lockups, Airdrops and Merkle claims
  6. Security and audits: Where tokens go wrong, Malicious token patterns, Audits and reviews
  7. The legal reality: When is a token sold as a security? The US view, Rules in the EU and elsewhere, Making isn't selling: responsible choices

Every lesson shows its sources and how sure we are, and is checked by Everwhy.