๐ฏ Smart Contracts 101
55 minutes to write your first trustless code on Bitcoin. Build and deploy an escrow smart contract on Citrea that holds funds until both parties confirm delivery โ code is law, no middlemen.
๐
Code is Law on Bitcoin
Solidity contracts deployed to Citrea settle to Bitcoin. Once deployed, the code cannot be changed โ perfect for Arcade marketplaces, tournaments, and escrows.
๐ What You'll Build
A simple 2-party escrow contract on Citrea. Buyer deposits, seller confirms delivery, buyer releases or disputes โ all on-chain and trustless. Deploy it, fund it, and use it for your first peer-to-peer Arcade trade.
๐ Quick Concepts
- Solidity Basics: contract, function, modifier, require, payable.
- Escrow: Smart contract that holds funds until conditions are met.
- Trustless Execution: Code runs exactly as written, no human can alter it after deployment.
- Deployment: Compile with Remix โ deploy to Citrea testnet.
๐จ Build Steps
- Open Remix.ethereum.org, create new Solidity file.
- Paste the provided Escrow.sol template (with buyer/seller roles, deposit, release, refund).
- Compile, switch network to Citrea testnet, deploy.
- Fund the contract as buyer, simulate seller confirmation, release funds.
- View the contract on Citrea explorer โ your first โฟapp is live!
๐
Singularity-Aware Reality Check
When AI agents trade with each other in the Arcade, they will use smart contracts like yours โ code is the only law they respect.
โก Lightning Network
The first major Layer 2โa network of payment channels enabling instant, near-free Bitcoin transactions.
๐จ
Instant Payments
Transactions confirm in milliseconds, not 10 minutes.
๐ฐ
Tiny Fees
Fractions of a cent per transactionโeven for micropayments.
๐ธ๐ป
Real-World Success: El Salvador
The Chivo wallet uses Lightning to enable everyday Bitcoin payments for 6+ million citizens.
๐ถ What is Citrea?
Citrea is a Bitcoin Layer 2 that brings smart contracts to Bitcoin using zero-knowledge rollup technology. It's where Bitcoin Arcade Zone is built!
๐ฎ
You're Using Citrea Right Now!
Bitcoin Arcade Zone runs on Citrea Testnet (Chain ID 5115). When you claim prizes, they're paid in cBTC on Citrea!
Citrea's Key Features
๐
Smart Contracts
Ethereum-compatible (EVM) smart contracts powered by Bitcoin security. Build DeFi, NFTs, gamesโall on Bitcoin.
๐
ZK-Rollup
Validity proofs verified on Bitcoinโmathematically impossible to cheat. Inherit Bitcoin's security.
Built on Bitcoin's security, not a separate chain. BTC is the native asset.
โก
Fast & Cheap
Thousands of transactions per second with fees under $0.01. Ready for mass adoption.