Api Endpoint

x402 Forge

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 tool for $1.00 and earn from every call: https://forge.fizzl.eu/forge/packages/sol-amount-convert.

Open interactive test console

Offering

Provider
forge.fizzl.eu
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://forge.fizzl.eu/p/sol-amount-convert
MIME type
application/json
First seen
2026-11-21T18:43:52.182Z
Last seen
Tags
Crypto, x402-forge, Solana, sol, lamports

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.001 USDC
Atomic price: 1000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "1000",
    "payTo": "0x1f6f7a67336F4bC31556475999417def2b311680"
  }
]

Observed health

Status
Healthy
Latest latency
104 ms
Average latency
106 ms
HTTP status
402
Last checked
Reachability
100% over 4 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "operation": {
          "type": "string",
          "enum": [
            "sol_to_lamports",
            "lamports_to_sol",
            "ui_to_raw",
            "raw_to_ui"
          ],
          "description": "sol_to_lamports, lamports_to_sol, ui_to_raw or raw_to_ui"
        },
        "amount": {
          "type": "string",
          "maxLength": 300,
          "description": "Unsigned amount as a string of ASCII digits; a JSON number is also accepted, but only as a non-negative safe integer (at most 2^53-1). UI units (at most one dot) for sol_to_lamports and ui_to_raw; a whole number of the smallest unit (lamports or raw token units) for lamports_to_sol and raw_to_ui."
        },
        "decimals": {
          "type": "integer",
          "minimum": 0,
          "maximum": 255,
          "description": "The decimals field of the token mint. Required for ui_to_raw and raw_to_ui; ignored (with a warning) for SOL operations, which always use 9."
        }
      },
      "required": [
        "operation",
        "amount"
      ]
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "input": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "http"
        },
        "method": {
          "type": "string",
          "enum": [
            "GET"
          ]
        },
        "queryParams": {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "enum": [
                "sol_to_lamports",
                "lamports_to_sol",
                "ui_to_raw",
                "raw_to_ui"
              ],
              "description": "sol_to_lamports, lamports_to_sol, ui_to_raw or raw_to_ui"
            },
            "amount": {
              "type": "string",
              "maxLength": 300,
              "description": "Unsigned amount as a string of ASCII digits; a JSON number is also accepted, but only as a non-negative safe integer (at most 2^53-1). UI units (at most one dot) for sol_to_lamports and ui_to_raw; a whole number of the smallest unit (lamports or raw token units) for lamports_to_sol and raw_to_ui."
            },
            "decimals": {
              "type": "integer",
              "minimum": 0,
              "maximum": 255,
              "description": "The decimals field of the token mint. Required for ui_to_raw and raw_to_ui; ignored (with a warning) for SOL operations, which always use 9."
            }
          },
          "required": [
            "operation",
            "amount"
          ]
        }
      },
      "required": [
        "type",
        "method"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "input"
  ]
}