Single Release Lifecycle
Create a Next.js Project#
npx create-next-app@latestcd my-trustless-appInstall Trustless Work Blocks#
npm install @trustless-work/blocksRun the CLI Setup
npx trustless-work initEnvironment Configuration
Add Wallet Connectivity
Wrap your app with the WalletProvider:
Example usage in a page:
Add Helpers
Add Tanstack Query
Add Handle Errors
Add Providers (If you skipped the init command)
Add Single Release Escrows Components
Add Single-Multi Release Escrows Components
Add Escrows by Role Cards
Import Actions
Commented Out Code
Actions Imported
Manual Provider Setup
Example usage in a page:
Final UI
Wallet Connection Dialog
Cards by Role
Initialize Escrow Dialog
Escrow Details Dialog
Last updated
Was this helpful?



