Self-contained, runnable code samples for the most common Fund-My-Cause integration patterns.
| Example | Language | Description |
|---|---|---|
| basic-campaign | TypeScript | Deploy, fund, and withdraw a campaign end-to-end |
| campaign-list | TypeScript | Fetch all campaigns from the registry and display stats |
| donation-matching | TypeScript | Set up a 1:1 sponsor matching pool |
| contribution-widget | React/TSX | Drop-in contribution button component |
| event-listener | TypeScript | Listen for on-chain contribution events |
Each example is a standalone Node/TypeScript project.
cd examples/basic-campaign
cp .env.example .env # fill in your testnet credentials
npm install
npm start- Node.js 18+
- A funded Stellar testnet keypair
- A deployed crowdfund contract (see Getting Started)