X

x402-gateway · Tools Wallet Verify Solana

by x402-gateway

POSTBase

$0.001

per call · USD Coin on Base

x402-gateway tool: wallet_verify_solana — Verify an ed25519 Solana wallet signature over a message containing a 'Nonce: <value>' line. Returns the signer pubkey. Consumes the nonce — one verification per nonce.

Endpoint

POST https://x402.freeq.one/tools/wallet_verify_solana

3

Calls / 30d

1

Unique payers / 30d

Aug 26

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://x402.freeq.one/tools/wallet_verify_solana", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "message": {
      "description": "Signed message containing a 'Nonce: <value>' line (get one via the /auth/solana/nonce endpoint pattern)",
      "type": "string"
    },
    "pubkey": {
      "description": "Base58 Solana public key of the signer",
      "type": "string"
    },
    "signature": {
      "description": "Base58 ed25519 signature",
      "type": "string"
    }
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://x402.freeq.one/tools/wallet_verify_solana" \
  -H "Content-Type: application/json" \
  -d '{"message":{"description":"Signed message containing a 'Nonce: <value>' line (get one via the /auth/solana/nonce endpoint pattern)","type":"string"},"pubkey":{"description":"Base58 Solana public key of the signer","type":"string"},"signature":{"description":"Base58 ed25519 signature","type":"string"}}' \
  -H "X-PAYMENT: <signed x402 payment>"

Payment details

Pay to0x90b0dc893406d6ea63bb077ed59f5e8340f98d84
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Onchain Data and the homepage with a featured placement.

Get featured →

More from x402-gateway & similar services