Allium · Balances History

by Allium

POSTBaseSolanaPolygonX Layer✓ Curated

$0.01

per call · USD Coin on Base

API request: /api/v1/developer/wallet/balances/history

Endpoint

POST https://agents.allium.so/api/v1/developer/wallet/balances/history

3

Calls / 30d

1

Unique payers / 30d

Aug 30

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://agents.allium.so/api/v1/developer/wallet/balances/history", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "addresses": [
      {
        "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
        "chain": "ethereum"
      }
    ],
    "end_timestamp": "2025-06-17T00:00:00Z",
    "start_timestamp": "2025-06-01T00:00:00Z"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://agents.allium.so/api/v1/developer/wallet/balances/history" \
  -H "Content-Type: application/json" \
  -d '{"addresses":[{"address":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045","chain":"ethereum"}],"end_timestamp":"2025-06-17T00:00:00Z","start_timestamp":"2025-06-01T00:00:00Z"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "items": [
    {
      "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
      "block_number": 20000000,
      "block_timestamp": "2025-06-17T00:00:00Z",
      "chain": "ethereum",
      "raw_balance": 1500000000000000000,
      "raw_balance_str": "1500000000000000000",
      "token": {
        "address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
        "chain": "ethereum",
        "decimals": 18,
        "info": {
          "name": "Wrapped Ether",
          "symbol": "WETH"
        },
        "object": "token",
        "type": "evm_erc20"
      }
    }
  ]
}

Payment details

Pay to0x417e809f1edcf2468730573e16077221754f54c9
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana, Polygon, X Layer
Schemesexact

Is this your API?

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

Get featured →

More from Allium & similar services