Skip to content
Fourohtwo

How many lamports (or raw SPL token units) is this amount, exactly

forge.fizzl.eu/p/sol-amount-convert

How many lamports (or raw SPL token units) is this amount, exactly? Solana amount converter (SOL and SPL tokens): Converts Solana amounts exactly: SOL to lamports and back, and SPL token UI amounts to raw u64 amounts and back for given mint decimals, the way… $0.001 per call in USDC, charged only on a 2xx answer. Try it free: https://forge.fizzl.eu/try/sol-amount-convert. Signed receipt. Own this

BaseAnswering
GEThttps://forge.fizzl.eu/p/sol-amount-convert

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://forge.fizzl.eu/p/sol-amount-convert?amount=1.5&decimals=6&operation=ui_to_raw");
console.log(await res.json());

Example input

{
  "amount": "1.5",
  "decimals": 6,
  "operation": "ui_to_raw"
}

More from x402 ForgeProvider status