ecoBridgeRetire now

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.

JavaScript
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
Live projects from the registry
Project (live)TypePriceQuality score
Buena Vista HeightsElizabeth Township, Pennsylvania, USACarbon$40 / tCO₂e7.8 / 10
El Globo Habitat BankCuchilla Jardín-Támesis District (DMI), ColombiaBiodiversity$25 / unit7.5 / 10
Sandy Cross ForestLexington, Ohio, USACarbon$40 / tCO₂e8.2 / 10
Harvey Manning ParkIssaquah, Washington, USA Carbon$40 / tCO₂e8.0 / 10
St. Elmo PreservationChattanooga, Tennessee, USACarbon$40 / tCO₂e8.1 / 10
Evergreen PreservationRichmond, Virginia, USACarbon$40 / tCO₂e7.4 / 10
Reforesting Des MoinesDes Moines, Iowa, USACarbon$40 / tCO₂e7.6 / 10
Grgich HillsRutherford, CaliforniaCarbon$23.52 / tCO₂e8.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.

Accepted stablecoins by chain
ChainAccepted stablecoins
EthereumDAIFRAXPYUSDUSDCUSDeUSDT
BaseDAIUSDCUSDSUSDT
ArbitrumDAIFRAXUSDCUSDT
OptimismDAIUSDCUSDT
PolygonDAIUSDCUSDT
CeloUSDCUSDGLOcUSD
SolanaUSDCUSDT

Step 3

Track it until it's retired

Poll the payment's transaction hash until its status reads RETIRED.

JavaScript
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));
  }
}
  1. 1PENDINGPayment seen, waiting for confirmations
  2. 2DETECTEDPayment confirmed on its chain
  3. 3CONVERTEDStablecoin amount valued in USD
  4. 4CALCULATEDCredits worked out from the project price
  5. 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:

terminal
curl https://api.bridge.eco/transactions/wallet/0xYourUsersWallet

No 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=25
Try it ↗

Endpoints

All public, all read-only.

  • GET /registryProjects, prices, quality scores, project wallets and supported tokens
  • GET /transactions/{tx_hash}Status of one payment, from PENDING to RETIRED, with its certificate
  • GET /transactions/wallet/{address}Every retirement paid from a wallet
  • GET /transactions/project/{id}Every retirement for a project
  • GET /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.

Talk to us