Skip to main content

Fiat Support Comes to ChainGate framework

· One min read

You asked for it — and it's here.
Fiat currency support is now fully integrated into the ChainGate SDK.

Previously, fiat pricing was only available through the /global/markets API. Now, you can use fiat values directly within your wallet logic, including balance display, transfers, and conversions — all using simple, familiar fiat codes like usd, eur, gbp, and more.

What this means for developers

With fiat support in the SDK, you can now:

  • 💰 Convert on-chain balances to real-time fiat equivalents with .toFiat('usd').
  • 💸 Send fiat-denominated amounts using currency.amountFiat('25', 'eur').
  • 🧠 Create intuitive UIs where users input fiat but transact in crypto behind the scenes.
  • 🔒 Stay accurate and up-to-date thanks to built-in exchange rate lookups.

Example: Display balance in fiat

const ethereum = wallet.currency('ethereum')
const balance = await ethereum.getBalance()

console.log('Confirmed:', balance.confirmed.str)
// e.g., "0.0048 eth"

const amountInEur = await balance.confirmed.toFiat('eur')
console.log('In EUR:', amountInEur.toString())
// e.g., "16.73"