Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 1.04 KB

File metadata and controls

28 lines (21 loc) · 1.04 KB

Integration Examples

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

Running an example

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

Prerequisites

  • Node.js 18+
  • A funded Stellar testnet keypair
  • A deployed crowdfund contract (see Getting Started)