EDENDocs
Investors Fees & revenue Open app
Eden Credits

Eden Credits

Eden Credits turns a company's existing credits, points or token into a token people can trade, on every chain Eden supports. You keep your credit system. Eden adds a wrapped, 1:1-backed version of it that lives on-chain, a pool to trade it in, and a bridge to move it between chains.

Early access — in development. Eden Credits is not live on mainnet. The interface on this page is the one being built and may still change. Fees, limits and supported chains are set per issuer at onboarding. You can try wrapping and unwrapping on the Eden demo network (test tokens only) from the Credits page of the demo app.

In plain English.

  • You already sell credits, points or a token. Eden makes a tradeable twin of it, backed one-for-one.
  • If your token is already on a blockchain, it is locked in a vault and a wrapped copy is issued. Unwrapping burns the copy and gives the original back.
  • If your credits live in your own database, you mint the tradeable token when a customer converts credits, and burn it when they convert back. You publish what backs them, on a schedule anyone can check.
  • The same token can move between chains through Eden Bridge. The total supply across all chains never grows by moving it.
  • You give it a market by seeding a pool, by paying in by card or bank, or by routing a share of your own sales into liquidity automatically.
  • It is a few lines of code with the Eden SDK.

1. Launch or convert

Eden started as a launchpad: a company launches a new token. Eden Credits is for the company that already has something its customers hold.

PathYou haveWhat Eden doesBacking
Existing on-chain tokenAn ERC-20 or SPL tokenLocks the original in a lockbox and issues a wrapped token (wXYZ) 1:1. Unwrap burns the wrapped token and releases the originalThe locked originals, visible on-chain
Off-chain creditsCredits or points in your own databaseDeploys a credit token that only your issuer key can mint and burn, with a supply cap and a daily mint limitYour published reserve: a signed total of outstanding credits, optionally from a proof-of-reserve feed
Native Eden launch (for comparison)Nothing yetA new token on a bonding curve that graduates into a pool. See Launch lifecycleThe curve

The first two paths never create supply out of nothing. A wrapped token exists only while an original is locked; a credit token exists only while your ledger says a customer converted a credit.

2. How it works

Eden Credits: connect, wrap, trade
Eden Credits: connect, wrap, trade

  1. Connect your credit system. Register the credit with its name, symbol, decimals and the chains it should trade on. Eden reviews it and deploys the contracts on the home chain.
  2. Wrap 1:1. On-chain tokens are wrapped by the holder, directly against the lockbox. Off-chain credits are minted by your backend when a customer converts them, and burned when they redeem.
  3. Add liquidity and trade on any chain. Seed a pool, and move supply to other chains through Eden Bridge.

Safety rails on every credit token

RailWhat it does
Supply capMinting can never exceed a cap fixed at onboarding
Daily mint limitA stolen issuer key can mint at most one day's limit before the issuer pauses it
PauseThe issuer (or Eden's guardian) can stop transfers, mints and burns at once
Reserve rootThe issuer publishes a signed total of outstanding credits; anyone can compare it with supply
Optional allowlistTransfers can be restricted to approved wallets where the issuer's rules require it
48-hour timelockRaising the cap or the daily limit, changing the issuer key, and every other admin change waits 48 hours on-chain, as across all of Eden

Wrapping an existing token

The lockbox measures what it actually received, so a token that takes a fee on transfer can never mint more wrapped tokens than are locked. Wrapping and unwrapping are permissionless: they do not need Eden or the issuer to be online.

3. Eden Bridge

Eden Bridge is how an Eden Credits token, and every token launched on Eden, moves between chains. The home chain is Robinhood Chain.

  • On the home chain the token is locked when it leaves and released when it comes back. On every other chain it is minted when it arrives and burned when it leaves. The bridge alone holds mint authority on those chains.
  • Total supply across all chains is therefore always equal to the supply on the home chain.
  • Every route has an inbound and an outbound rate limit. A transfer over the limit waits in a queue instead of failing.
  • The transport underneath is an established cross-chain messaging network, behind one interface, so the route can change without changing the token.

Chains planned: Robinhood Chain (home), Solana, Base, Ethereum and Arbitrum. Which are open for a given credit is set at onboarding.

4. Liquidity

A tradeable token needs a market. There are three ways to fund one, and they can be combined.

WayHow it works
Seed a poolDeposit USDG, USDC or ETH with an amount of your credits. Eden opens the pool at the price you set. The liquidity is locked for good, so it cannot be pulled out from under traders
Card or bank, via StripePay by card or bank transfer on a Stripe checkout page. The payment is settled in a stablecoin and added to your pool's liquidity vault
Share of salesChoose a percentage of your Stripe sales. Each successful payment adds that share to a batch, and the batch is added to the pool on-chain once it is large enough to be worth the gas

Liquidity is always added through the vault, which can only add to the pool. It cannot withdraw.

Card, bank and share-of-sales funding depend on Stripe's stablecoin settlement being available for your business and region. Eden confirms this at onboarding.

5. A few lines of code

The Eden SDK is a TypeScript package. Keep the API key on your server: the SDK refuses to start with an API key in a browser.

ts
import { EdenCredits } from "@eden/credits";

const eden = new EdenCredits({ apiKey: process.env.EDEN_API_KEY });

// 1. Connect your existing credit system
const credit = await eden.credits.register({
  mode: "offchain",
  name: "Acme Credits",
  symbol: "ACME",
  decimals: 2,
  chains: ["robinhood", "solana", "base"],
});

// 2. A customer converts 250 credits: mint the tradeable token to their wallet
await eden.credits.mint({ creditId: credit.id, to: wallet, amount: "250", idempotencyKey: ledgerEntryId });

// 3. Fund liquidity: card or bank now, plus 2% of every sale from here on
const { url } = await eden.liquidity.stripe.checkout({ creditId: credit.id, amountUsd: 5000 });
await eden.liquidity.salesShare.configure({ creditId: credit.id, percent: 2 });

The percentage of sales is your choice; the example uses 2 %.

The rest of the SDK

CallWhat it does
credits.register({ mode, name, symbol, decimals, token?, chains })Registers a credit. mode: "onchain" with token wraps an existing token; "offchain" creates an issuer-minted credit token
credits.mint({ creditId, to, amount, idempotencyKey })Off-chain path: mints when a customer converts credits. Repeating the same key never mints twice
credits.burn({ creditId, from, amount, idempotencyKey })Off-chain path: burns redeemed tokens so you can credit the customer's account
credits.wrap({ lockbox, token, amount }) / credits.unwrap({ lockbox, wrapped, amount })On-chain path: wraps and unwraps directly against the lockbox from the holder's wallet
bridge.send({ creditId, to, amount, recipient })Moves tokens to another chain through Eden Bridge
liquidity.seed({ creditId, asset, amount })Seeds the pool with USDG, USDC or ETH
liquidity.stripe.checkout({ creditId, amountUsd })Returns a Stripe checkout URL that funds liquidity by card or bank
liquidity.salesShare.configure({ creditId, percent, stripeWebhookSecret })Routes a share of each sale to liquidity and returns the webhook URL to add in Stripe. Pass the signing secret Stripe shows for that endpoint (call again once you have it): Eden only counts sales signed with your endpoint's secret
webhooks.stripe(handler)Verifies Stripe's signature on incoming events before your handler runs

Wrapping from a wallet

Wrapping needs no API key. The holder's wallet talks to the lockbox directly: the SDK approves exactly the amount, then wraps. Unwrapping has no recipient field: the originals always go back to the wallet that unwraps.

ts
import { createPublicClient, createWalletClient, custom, http } from "viem";
import { EdenCredits } from "@eden/credits";

// `chain` and `rpcUrl`: the viem chain the credit lives on and its RPC
const [account] = await window.ethereum.request({ method: "eth_requestAccounts" });
const eden = new EdenCredits({
  publicClient: createPublicClient({ chain, transport: http(rpcUrl) }),
  walletClient: createWalletClient({ account, chain, transport: custom(window.ethereum) }),
});

// Approves exactly 100 XYZ to the lockbox, then mints 100 wXYZ to you
await eden.credits.wrap({ lockbox, token, amount: "100" });

// Burns 100 wXYZ; the XYZ always go back to the wallet that unwraps
await eden.credits.unwrap({ lockbox, wrapped, amount: "100" });

To try it without writing code, use the Credits page of the demo app.

Off-chain credits: the conversion flow

ts
// Your "convert to token" endpoint
app.post("/convert", async (req, res) => {
  const entry = await db.debitCredits(req.user.id, req.body.amount); // your ledger first
  await eden.credits.mint({ creditId, to: req.user.wallet, amount: req.body.amount, idempotencyKey: entry.id });
  res.json({ ok: true });
});

Debit your own ledger first, then mint with the ledger entry as the idempotency key. If the call is retried, the customer is never paid twice.

6. Fees and limits

Fees, the supply cap, the daily mint limit, the chains a credit is open on, and the minimum share-of-sales batch are set at onboarding for each issuer. Nothing on this page is a published rate.

7. Before you make credits tradeable

This is not legal advice. Making credits or points tradeable can change how they are regulated: in some places a tradeable credit may be treated as a security, as stored value, or as money transmission. Talk to counsel before you go live. Eden supports identity checks at conversion, transfer allowlists and pausing for issuers who need them.

See Risk disclosures for the risks of holding any token on Eden.

Eden · Robinhood ChainFigures are the mainnet launch configuration. Nothing here is investment advice.