StatePulse API · Blockchain Balances

by StatePulse API

POSTBaseSolana

$0.001

per call · USD Coin on Base

Scans native balance and ERC-20 token balances for a wallet address on Base or Ethereum.

Endpoint

POST https://statepulse-api.hahavoid0.workers.dev/blockchain/balances

5

Calls / 30d

3

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://statepulse-api.hahavoid0.workers.dev/blockchain/balances", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "wallet": "0x4a82F147c8A4339409C9097Adc1EedFd56E85bFE"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://statepulse-api.hahavoid0.workers.dev/blockchain/balances" \
  -H "Content-Type: application/json" \
  -d '{"wallet":"0x4a82F147c8A4339409C9097Adc1EedFd56E85bFE"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "confidence": "high",
  "result": {
    "chain": "base",
    "native_balance": "0.42",
    "usdc_balance": "12.50",
    "wallet": "0x4a82F147c8A4339409C9097Adc1EedFd56E85bFE"
  },
  "supported": true
}

Payment details

Pay to0x4a82f147c8a4339409c9097adc1eedfd56e85bfe
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

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

Get featured →

More from StatePulse API & similar services