Allium · Queries RUN Async

by Allium

POSTBaseSolanaPolygonX Layer✓ Curated

$0.01

per call · USD Coin on Base

API request: /api/v1/explorer/queries/run-async

Endpoint

POST https://agents.allium.so/api/v1/explorer/queries/run-async

26

Calls / 30d

2

Unique payers / 30d

Sep 2

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/explorer/queries/run-async", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "parameters": {
      "sql": "SELECT * FROM crosschain.metrics.overview LIMIT 10;"
    }
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://agents.allium.so/api/v1/explorer/queries/run-async" \
  -H "Content-Type: application/json" \
  -d '{"parameters":{"sql":"SELECT * FROM crosschain.metrics.overview LIMIT 10;"}}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "run_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}

Payment details

Pay to0x9c3284ba60526c8c0af3b45a734d91ce99266bc2
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