G

Glianalabs · Tools Exchange Rate

by Glianalabs

POSTBaseSolana

$0.002

per call · USD Coin on Base

GlianaAI - pay-per-call AI, market data and identity APIs, no signup, USDC. This resource: tools/exchange-rate. Fiat currency conversion across 160+ currencies. https://ai.glianalabs.com

Endpoint

POST https://api.glianalabs.com/x402/tools/exchange-rate

1

Calls / 30d

1

Unique payers / 30d

Aug 17

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://api.glianalabs.com/x402/tools/exchange-rate", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "amount": 100,
    "from": "USD",
    "to": "IDR,EUR"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://api.glianalabs.com/x402/tools/exchange-rate" \
  -H "Content-Type: application/json" \
  -d '{"amount":100,"from":"USD","to":"IDR,EUR"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "tool": "tools/exchange-rate"
}

Payment details

Pay to0x7662e00f8ab4c362166e1ff649ff6c2a638c80ad
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

Pin it to the top of Developer Tools and the homepage with a featured placement.

Get featured →

More from Glianalabs & similar services