Developer quickstart
Add verified credit retirement to anything.
The bridge.eco API is free and open to anyone, and it needs no API key. Read the registry, take a stablecoin payment, and show the certificate. That's the whole integration.
- Base URL
- api.bridge.eco
- Auth
- None needed
- Rate limit
- 100 requests/min per IP
Step 1
Get the projects
One call returns every project with its price, quality score and the wallets that accept payment.
const res = await fetch("https://api.bridge.eco/registry");
const { projects } = await res.json();
const project = projects.find((p) => p.id === 7);
project.name; // "Buena Vista Heights"
project.price; // 40 (USD per credit)
project.evmWallet; // pay here on EVM chains
project.solanaWallet // pay here on Solana| Project (live) | Type | Price | Quality score |
|---|---|---|---|
| Buena Vista HeightsElizabeth Township, Pennsylvania, USA | Carbon | $40 / tCO₂e | 7.8 / 10 |
| El Globo Habitat BankCuchilla Jardín-Támesis District (DMI), Colombia | Biodiversity | $25 / unit | 7.5 / 10 |
| Sandy Cross ForestLexington, Ohio, USA | Carbon | $40 / tCO₂e | 8.2 / 10 |
| Harvey Manning ParkIssaquah, Washington, USA | Carbon | $40 / tCO₂e | 8.0 / 10 |
| St. Elmo PreservationChattanooga, Tennessee, USA | Carbon | $40 / tCO₂e | 8.1 / 10 |
| Evergreen PreservationRichmond, Virginia, USA | Carbon | $40 / tCO₂e | 7.4 / 10 |
| Reforesting Des MoinesDes Moines, Iowa, USA | Carbon | $40 / tCO₂e | 7.6 / 10 |
| Grgich HillsRutherford, California | Carbon | $23.52 / tCO₂e | 8.6 / 10 |
Step 2
Pay with a stablecoin
Your user sends a stablecoin to the project's wallet: evmWallet on EVM chains, solanaWallet on Solana. The payment is valued 1:1 in USD and turned into credits at the project's price. Payments are matched on the exact token symbol, so bridged versions such as USDC.e don't count.
ecoBridge is a connector, not a credit supplier. Credits are issued and verified by independent registries and project developers. ecoBridge provides the technology that connects buyers and payments to those credits and records each retirement on-chain.
| Chain | Accepted stablecoins |
|---|---|
| Ethereum | DAIFRAXPYUSDUSDCUSDeUSDT |
| Base | DAIUSDCUSDSUSDT |
| Arbitrum | DAIFRAXUSDCUSDT |
| Optimism | DAIUSDCUSDT |
| Polygon | DAIUSDCUSDT |
| Celo | USDCUSDGLOcUSD |
| Solana | USDCUSDT |
Step 3
Track it until it's retired
Poll the payment's transaction hash until its status reads RETIRED.
async function waitForRetirement(txHash) {
for (;;) {
const tx = await fetch(
`https://api.bridge.eco/transactions/${txHash}`
).then((r) => r.json());
if (tx.status === "RETIRED") return tx; // done
if (tx.status?.startsWith("FAILED") || tx.status === "REJECTED") throw new Error(tx.status);
await new Promise((r) => setTimeout(r, 10_000));
}
}- 1PENDINGPayment seen, waiting for confirmations
- 2DETECTEDPayment confirmed on its chain
- 3CONVERTEDStablecoin amount valued in USD
- 4CALCULATEDCredits worked out from the project price
- 5RETIREDCredits retired on Regen Ledger, certificate issued
Step 4
Show the certificate
A retired payment carries a certificate_id and the retirement_tx_hash on Regen Ledger. To show a user everything they've retired, list it by wallet:
curl https://api.bridge.eco/transactions/wallet/0xYourUsersWalletNo code?
Link straight into bridge.eco
Build a link that opens bridge.eco with your project and amount already filled in. Put it on a button, in a newsletter, or behind a QR code. All link options ↗
The amount is filled in for the payer, in the stablecoin they choose. Leave it blank to let them decide.
https://bridge.eco/?tab=impact&project=7&amount=25Endpoints
All public, all read-only.
GET /registryProjects, prices, quality scores, project wallets and supported tokensGET /transactions/{tx_hash}Status of one payment, from PENDING to RETIRED, with its certificateGET /transactions/wallet/{address}Every retirement paid from a walletGET /transactions/project/{id}Every retirement for a projectGET /transactionsAll retirements, newest first (filter by status or blockchain)GET /openapi.jsonOpenAPI 3 spec. Load it into Postman or hand it to an AI agent as tools
Building something bigger?
Volume retirements, custom projects, or credits for every user of your app. We'll help you set it up.