Cookbook
The Stacks Cookbook is a collection of sample apps and smart contracts to serve as starting points and references for building your own Stacks apps. It is currently a work in progress. Here is some of the content we have planned and we welcome contributions.
Many of these cookbook recipes have been pulled from other tutorials and linked here for easy access. Links to full tutorials and sample code have been included for reference and further exploration.
Got an idea you think would make a good addition? We're always accepting contributions.
Bitcoin Integration
Swapping between Bitcoin and Stacks addresses
Swapping between xBTC and BTC
Verifying a transaction on the BTC chain
DAOs
Creating a simple DAO with ExecutorDAO
Creating a BTC-backed DAO treasury
Tokens
Minting an NFT with Bitcoin
Airdropping an NFT to a Bitcoin address
Stacking and Mining
Simple stacking pool
Continuous stacking
Simple mining pool
Proof of PoX payout
Oracles
Creating a simple BTC price oracle
Frontend
Post conditions with Stacks.js
Sending transactions with Stacks.js