The developer: Marcus, CTO at a Web3 gaming studio
Marcus’s studio ships a play-to-earn game where players earn tokens for in-game achievements. He wants to let players donate a portion of their earnings to charity directly from the game, without his team having to vet charities, handle custody, or touch any of the crypto-to-USD conversion. He signs up for Donate.gg API access, gets an API key, and integrates in an afternoon.Step 1: Browse verified charities
Marcus fetches the charity list to populate a picker in his game UI. Players choose which cause their donations support.Step 2: Create a config for the player’s selection
When a player confirms their charity choices, Marcus’s backend creates a config with their selected charities and weights.Step 3: Use the config ID on-chain
Marcus stores the config ID against the player’s account. When a player triggers a donation in-game, the client-side transaction references the config ID directly, and Donate.gg routing handles the rest.The outcome
Players donate crypto from their in-game wallets. Donate.gg converts and routes funds to the charities the player selected. Each charity receives USD directly to their bank account. Marcus’s team ships the feature without building any charity verification, custody, or payout infrastructure. The entire integration is three API calls.Charities
Browse the verified charity network
Configs
Create and manage donation configs