Arkham x402 · Portfolio Address

by Arkham x402

POSTBaseSolana

$0.2

per call · USD Coin on Base

Get Arkham portfolio history for an address. $0.20 per call.

Endpoint

POST https://api.arkm.com/x402/portfolio/address

1

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://api.arkm.com/x402/portfolio/address", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "address": "0x28C6c06298d514Db089934071355E5743bf21d60",
    "time": "1704067200000"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://api.arkm.com/x402/portfolio/address" \
  -H "Content-Type: application/json" \
  -d '{"address":"0x28C6c06298d514Db089934071355E5743bf21d60","time":"1704067200000"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "bsc": {
    "1inch": {
      "balance": 1112.62,
      "id": "1inch",
      "name": "1INCH",
      "price": 0.45496,
      "symbol": "1inch",
      "usd": 506.1975952
    },
    "alchemy-pay": {
      "balance": 10,
      "id": "alchemy-pay",
      "name": "Alchemy Pay",
      "price": 0.02132812,
      "symbol": "ach",
      "usd": 0.2132812
    }
  },
  "ethereum": {
    "0x": {
      "balance": 10032515.845947504,
      "id": "0x",
      "name": "0x Protocol",
      "price": 0.369874,
      "symbol": "zrx",
      "usd": 3710766.766003987
    },
    "1inch": {
      "balance": 6065867.718795477,
      "id": "1inch",
      "name": "1INCH",
      "price": 0.45496,
      "symbol": "1inch",
      "usd": 2759727.17734319
    }
  }
}

Payment details

Pay to0x942bd3e3073543c674efc0c378d5bce20f9120c1
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

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

Get featured →

More from Arkham x402 & similar services