Documentation
BRC-20 Minting SDK
Deploy your own Bitcoin BRC-20 token minting platform in 10 minutes. Just fork, configure, and deploy.
10min
Setup time
Free
Hosting & API
3
Wallets
Setup Guide
01
Get API Token
2 min
Required for fetching wallet balances and transaction data.
- 1.Visit open-api.unisat.io
- 2.Sign up with email or GitHub
- 3.Generate and save your API key
03
Configure
3 min
Add environment variables in Vercel Dashboard → Settings → Environment Variables
UNISAT_API_TOKENREQUIREDNEXT_PUBLIC_NETWORKREQUIREDNEXT_PUBLIC_DEFAULT_TICKERREQUIREDNEXT_PUBLIC_DEFAULT_AMOUNTREQUIREDRemember to redeploy after adding variables
04
Test & Launch
2 min
Verify everything works before going live.
- Connect wallet (Unisat, Xverse, or OKX)
- Test mint transaction
- Verify on mempool.space
Configuration
Required Variables
UNISAT_API_TOKENAPI token from Unisat Open API
Example: abc123...
NEXT_PUBLIC_NETWORKBitcoin network to use
Example: mainnet or testnet
NEXT_PUBLIC_DEFAULT_TICKERToken symbol users will mint
Example: ANY
NEXT_PUBLIC_DEFAULT_AMOUNTAmount per mint transaction
Example: 1
Optional Variables
COMMISSION_WALLET_ADDRESSYour wallet for platform fees
Example: bc1q...
COMMISSION_AMOUNT_BTCFee amount in BTC (first mint only)
Example: 0.00001