About Fab X
What is Fab X
Fab X is the first community miner built on TapeOut, on X Layer. No machines to buy — the circuit you design is the miner.
Claim a task from the bank, build your circuit out of NAND and LATCH gates, and tape it out into a permanent on-chain miner that earns $FAB around the clock. Leaner, sharper designs earn more.
$FAB is capped at 21,000,000 with no pre-mine — emitted every second and freely tradable. All protocol and market rules run on-chain on X Layer, publicly verifiable.
Mining is just the first step. The same circuits and tools will grow into an entire DeWeb ecosystem — more on-chain computation and applications, built by the community.
$FAB mining
$FAB is the core incentive of the ecosystem — real revenue and user incentives for circuit designers, tool developers, and DeWeb builders.
$FAB is emitted every second and halves roughly every four years. All of it goes to miners that are running: the higher your hashrate share, the more $FAB you earn.
Miners that pass task verification join the verified pool, which earns --% of emissions — split by each miner’s share of the pool’s hashrate. Hashrate counts burn basis plus the Best Original design premium, times the processor coefficient.
Miners without a claimed task sit in the unverified pool, which earns the remaining --% — split by burn-basis weight. Their hashrate counts burn basis and the processor coefficient only, with no design premium.
Mining tasks
The task bank holds 100 tasks. Every task ships with an official reference implementation — synthesized, vector-tested, and locked on-chain when it goes live.
Your job comes down to one thing: get your design cost C below the reference and pass on-chain verification. Each task has one Best Original slot per processor — with a design premium — held by the verified circuit with the lowest C. A lower-cost design takes the slot.
Task verification and enforcement
Claiming a task starts with locking in an anchor block. Once mining starts, the protocol samples official test vectors and runs your circuit on-chain — pass, and you're in the verified pool, earning --% of emissions.
Verification doesn't stop there: official test vectors can challenge your miner at any time, and any circuit whose output differs from its reference implementation is flagged as a counterexample.
Two ways to fail: a failed test vector revokes your mining qualification; a counterexample removes your circuit from the slot.
Hashrate formula
Hashrate H = (b* × F + design premium) × P
The factor applies only to circuit cost b*, not to the design premium.
Boost rules
Staking OKB boosts your mining: stake 100, 300, 500, 800, or 1,000 OKB and the circuit-cost portion of your hashrate gains +5%, +7%, +9%, +12%, or +15%. The current factor F is read from the contract.
The stake bonus updates when a tier is reached. Unstaking adjusts the tier immediately; funds become available after 7 days — they can be sent automatically, or you can withdraw manually. Unstaking again adds to the pending amount and restarts the 7-day wait.
F is based on the current circuit holder. A transfer changes it to the new holder’s factor.
Staking and unstaking settle your active circuits and update hashrate; after a transfer, the factor syncs automatically, or you can choose “Claim & sync” to collect rewards and update hashrate.
How bids are filled
Cancelling a bid returns the unfilled portion’s OKB to your wallet. No separate withdrawal is needed.
Sell into a bid at its listed price. A 1% fee applies to every trade. You’ll need to approve the market before your first sale.
How circuit sales work
Circuit sales are fully peer-to-peer: the NFT stays in the seller’s wallet while listed, and settles to the buyer together with its container. A 1% fee applies.
Container guide
Every circuit comes with an on-chain container — an account controlled by the holder that can hold tokens and NFTs and send or receive payments. Nested protocol circuits aren’t supported. Container assets and contract earnings transfer with the circuit.
A created container has its own on-chain address and can receive assets. Withdrawals and batch withdrawals require a protocol fee in addition to network fees.
A container has no private key. The current circuit NFT holder controls it and can withdraw when permitted. The container itself does not provide irrevocable locking or staking commitments.
Nested protocol circuits are not supported. Review all holdings before listing.
- Do not send a circuit to its own container
- The circuit and its container assets will be permanently locked, with no way to withdraw or recover them.
- Selling a circuit transfers its container assets
- This includes tokens and NFTs. Any circuits previously transferred into the container unintentionally, and their container assets, may also transfer.
- This feature is currently in a testing phase; once it is confirmed stable, ownership of the contract will be permanently renounced.
Containers are created with a one-time fee. Protocol fees go directly to the protocol fee wallet, without an on-chain treasury or automatic swaps.
Netlist encoding
Inputs A and B pass through a NAND gate to produce Y = ¬(A∧B). Signal numbers 0 and 1 are constants; inputs start at 2. LATCH stores one state bit. NAND uses opcode 0x00 and 7 bytes; LATCH uses 0x01 and 4 bytes; REF uses 0x02 to reuse an existing circuit.
Calling circuits
Every circuit is a permanent on-chain function that anyone can call for free (a view call — no transaction, no wallet). Inputs and outputs are packed into bytes in little-endian bit order. Use eval for combinational circuits and step for anything with state.
OKLink → Contract → Read Contract → eval(circuitId, input hex) → Query