Recipes
Token-gate a Next.js page with Mesh and CIP-30
Add wallet-based token gating to a Next.js page in under 50 lines. If the connected wallet holds a token under a specific policy ID, show the…
RecipeBuild a vesting contract with Aiken and Mesh
Write a time-lock vesting validator in Aiken that lets an owner lock ADA for a beneficiary. The beneficiary can only claim after a deadline; the owner…
RecipeMint a CIP-25 NFT with Mesh SDK
Build a one-shot minting policy in Mesh SDK that mints a single NFT with CIP-25 metadata on Cardano's preview testnet. A one-shot policy uses a specific…
RecipeQuery UTxOs and on-chain data with Blockfrost
Use the Blockfrost REST API to fetch all UTxOs at a Cardano address, parse ADA and native token balances, and handle pagination. This is the foundation…
RecipeWrite unit tests for Aiken validators
Write inline unit tests directly in Aiken using the test keyword. Test your vesting validator against valid claims, invalid signers, and early withdrawals. Run everything with…
RecipeBuild and submit a transaction with Evolution SDK
Build a simple ADA transfer with Evolution SDK (formerly cardano-js-sdk). Understand where Evolution fits vs Mesh — Evolution is lower-level, more flexible, and better suited for…
RecipeProve wallet ownership with CIP-8 message signing
Use CIP-8 to request a cryptographic signature from a wallet, then verify it server-side. Proves the user controls an address — zero passwords, zero accounts, just…
RecipeDeploy and use reference scripts to save transaction fees
Reference scripts (CIP-0033) let you deploy a compiled Aiken validator once to a UTxO, then reference it in future transactions instead of including the full script…