Quick start
1. Create a client
import { createCelinaClient } from "@andrewkimjoseph/celina-sdk";
const celina = createCelinaClient({
rpcUrl: "https://forno.celo.org",
ethRpcUrl: "https://ethereum.publicnode.com", // optional, for ENS
});2. Read on-chain data
// Stablecoin balances for an address
const balances = await celina.token.getStablecoinBalances("0xYourAddress");
// Mento FX quote (no wallet needed)
const quote = await celina.mentoFx.getFxQuote("USDm", "EURm", "100");
// Uniswap v4 quote (no wallet needed)
const swapQuote = await celina.uniswap.getSwapQuote("USDC", "USDT", "100");
// GoodDollar reserve quote — G$ ↔ USDm (no wallet needed)
const reserveQuote = await celina.gooddollar.getReserveQuote("GoodDollar", "USDm", "1000");3. Prepare an unsigned transaction
4. Simulate and sign with wagmi
Next steps
Last updated
Was this helpful?