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.
Swapping between Bitcoin and Stacks addresses
Swapping between xBTC and BTC
Verifying a transaction on the BTC chain
Creating a simple DAO with ExecutorDAO
Creating a BTC-backed DAO treasury
Minting an NFT with Bitcoin
Airdropping an NFT to a Bitcoin address
Stacking and Mining
Simple stacking pool
Simple mining pool
Proof of PoX payout
Creating a simple BTC price oracle
Post conditions with Stacks.js
Sending transactions with Stacks.js