Bitcoin L1 Smart Contracts
Deploy Your OP-20 Token
Configure your token, generate a standards-compliant AssemblyScript contract, build it locally, and deploy via OP_WALLET.
1
Configure
2
Download
3
Build
4
Deploy
5
Register
Token Parameters
These values are compiled into your smart contract. They cannot be changed after deployment.
Token Name *
Full display name shown in wallets
Ticker Symbol *
Short identifier (2–8 uppercase letters)
Total Supply *
tokens
Maximum tokens that will ever exist
Decimals
18 = standard (1 token = 10¹⁸ base units)
Description (optional)
Mint Strategy
How tokens are initially distributed after deployment
🏦
Mint to Deployer
All tokens immediately sent to your wallet on deployment
🌐
Public Mint
Anyone can call mint() until supply is exhausted
🔐
Owner Mint
Only the deployer can call mint() — useful for controlled distribution

🚰 Include Faucet Contract

Lets anyone claim a set amount of your tokens on a cooldown

Claim Amount *
tokens
Cooldown Period
hours
Your parameters are baked into an OP-20 AssemblyScript source file
📦 Download Your Contract Package
Your OP-20 contract has been generated as a complete, buildable AssemblyScript project. Download the ZIP and extract it.
📄
token_project.zip
Includes: contract source · package.json · asconfig.json · README
⬇ Download ZIP
What's inside:
📝 src/contracts/MyToken.ts — your token
⚙️ package.json — dependencies
🔧 asconfig.json — build config
📖 README.md — deploy guide
🔨 Build Your WASM Contract
Compile your AssemblyScript source into a .wasm binary that OP_WALLET will accept for deployment. This requires Node.js 18+ installed locally.
1
Extract & open the project
Unzip your downloaded package and open a terminal in that folder.
2
Install dependencies & compile
npm install
npm run build
This installs @btc-vision/btc-runtime and compiles your contract to build/MyToken.wasm.
3
Locate your WASM file
After a successful build you'll find build/MyToken.wasm — this is your compiled smart contract, ready to upload.
🚀 Deploy via OP_WALLET
OP_NET contracts are deployed by uploading your compiled .wasm file directly through the OP_WALLET browser extension. No third-party relayers — pure Bitcoin L1.
1
Install OP_WALLET
If you don't have it yet, install the OP_WALLET Chrome extension. It's the official wallet for OP_NET and all Bitcoin L1 smart contracts.
2
Switch to OP_NET Testnet & fund wallet
Open OP_WALLET, select the correct network in the top-right corner. You need a small BTC balance for the deployment transaction fee. Get free tBTC from the faucet below.
3
Upload your WASM and deploy
In OP_WALLET, click the Deploy button. Drag and drop (or browse to) your build/MyToken.wasm file. Review the transaction and click Sign & Broadcast.
4
Wait for confirmation
The deployment is confirmed in Bitcoin blocks (typically 10 minutes). OP_WALLET will show your new contract address once confirmed — it starts with op1... (P2OP format, unique to OP_NET contracts).
✅ Register Your Deployed Token
After OP_WALLET confirms your deployment, copy the contract address (starts with op1...) and paste it below to track it on your dashboard.
Contract Address *
This is the op1... address shown in OP_WALLET after deployment confirms
Token Management
My Deployed Tokens
All tokens deployed via Token Forge, stored per network.
Token Distribution
Claim From Faucet
Enter a faucet contract address to claim tokens. Rate-limited to one claim per wallet per cooldown window.
Faucet Contract Address *