Arkham x402 · TX

by Arkham x402

POSTBaseSolana

$0.4

per call · USD Coin on Base

Get Arkham transaction details. $0.40 per call.

Endpoint

POST https://api.arkm.com/x402/tx

1

Calls / 30d

1

Unique payers / 30d

Aug 24

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

Example response

{
  "ethereum": {
    "blockHash": "0x4e3a3754410177e6937ef1f84bba68ea139e8d1a2258c5f85db9f1cd715a1bdd",
    "blockNumber": 46147,
    "blockTimestamp": "2015-08-07T03:30:33Z",
    "chain": "ethereum",
    "contractAddress": null,
    "enrichedFromAddress": {
      "address": "0xA1E4380A3B1f749673E270229993eE55F35663b4",
      "arkhamLabel": {
        "address": "0xA1E4380A3B1f749673E270229993eE55F35663b4",
        "chainType": "evm",
        "name": "thanateros.eth"
      },
      "chain": "ethereum",
      "contract": false,
      "isUserAddress": false
    },
    "enrichedToAddress": {
      "address": "0x5DF9B87991262F6BA471F09758CDE1c0FC1De734",
      "chain": "ethereum",
      "contract": false,
      "isUserAddress": false
    },
    "ethPrice": 2.83162,
    "fee": 1.05,
    "fromAddress": "0xA1E4380A3B1f749673E270229993eE55F35663b4",
    "gasLimit": 21000,
    "gasPrice": 50000,
    "gasUsageByTransaction": 21000,
    "hash": "0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060",
    "isMempoolTx": false,
    "receiptStatus": 0,
    "status": "completed",
    "toAddress": "0x5DF9B87991262F6BA471F09758CDE1c0FC1De734",
    "tokenID": "ethereum",
    "tokenSymbol": "ETH",
    "unitValue": 3.1337e-14,
    "usdValue": 8.873447594e-14
  }
}

Payment details

Pay to0x942bd3e3073543c674efc0c378d5bce20f9120c1
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 Arkham x402 & similar services