Skip to content
Fourohtwo

Convert crypto units exactly

saylorinnovations.com/api/crypto/unit-convert

Convert crypto units exactly: wei, gwei, ether, lamports, SOL, satoshis, BTC and any token decimals, using integer math with no floating-point rounding errors.

SolanaAnswering
GEThttps://saylorinnovations.com/api/crypto/unit-convert

Uptime100% of 1 check in 30 days

30 days agoToday

Call it from an agent

curl -i "https://saylorinnovations.com/api/crypto/unit-convert?to=gwei&from=ether&amount=1.5"

# 402 Payment Required comes back with the price and where to pay.

Example input

{
  "to": "gwei",
  "from": "ether",
  "amount": "1.5"
}

More from Saylor Innovations Data Desk