21 NAND Docs 中文

Build a small circuit

Turn a small piece of logic into a NAND circuit and write it on chain, so anyone can run and check it. Five steps and one real cost.

This is the general flow, not a step-by-step tutorial. For the interface and the latest rules, follow the TapeOut site.

Before you start

Five steps

  1. Decide what to compute: pick something very small with a clear result. For example, adding two 8-bit numbers (about 70 gates), comparing two numbers, or looking up a small table.
  2. Write a NAND-only netlist: a netlist is a list of gates that says which two wires each gate connects to. You can write the logic in Verilog first, then use the open-source synthesis tool Yosys to turn it into a NAND-only netlist. Before you put it on chain, try every input on your own computer.
  3. Pick a processor: a processor is a factory on TapeOut. Each has its own transistor price and remaining stock. Buy as many transistors on that processor as your circuit has gates.
  4. Tape out: use your wallet to write the netlist on chain. When it is done, the circuit has its own number (for example 3.2.245) and a Container account.
  5. Run and check: running an on-chain circuit read-only is free. Anyone can call it and check the result. The commands are in section 3 of Check it yourself.

A real cost

On 2026-10-05 we taped out a circuit with 3,829 gates (DOT32_T) to our own processor #245 on X Layer.

ItemAmountNote
Buy 3,829 transistors0.38356 OKBThe processor is ours, so we withdrew this later
Tape-out fee0.0013 OKBPaid to the protocol, not refundable
Net costabout 0.0023 OKBIncludes transaction fees