76trust / 100

Queries Run Async

by Allium in Onchain & crypto

x402 APIPassing, checked 3 h ago

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

POST
https://agents.allium.so/api/v1/explorer/queries/run-async
Price
$0.01
per call in USDC
Uptime
100%
last 30 days
Response time
1.4 s
5.5 s slowest 5%
Last check
Passed
3 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

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

Each call costs $0.01 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

POST https://agents.allium.so/api/v1/explorer/queries/run-async
content-type: application/json

{
  "parameters": {
    "sql": "SELECT * FROM crosschain.metrics.overview LIMIT 10;"
  }
}

Parameters

ParameterTypeRequiredDescription
parametersobjectNoKey-value map of query parameter substitutions

Example response

The provider's example. We can't check it without paying.

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

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.01.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://agents.allium.so/api/v1/explorer/queries/run-async' \
  -H 'content-type: application/json' \
  --data-raw '{"parameters":{"sql":"SELECT * FROM crosschain.metrics.overview LIMIT 10;"}}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://agents.allium.so/api/v1/explorer/queries/run-async' \
  -H 'content-type: application/json' \
  --data-raw '{"parameters":{"sql":"SELECT * FROM crosschain.metrics.overview LIMIT 10;"}}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.01 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.01" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.01 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagents.allium.so%2Fapi%2Fv1%2Fexplorer%2Fqueries%2Frun-async&method=POST
const res = await pay("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;"
    }
  }),
});
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.01 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.01"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://agents.allium.so/api/v1/explorer/queries/run-async",
        json={
            "parameters": {
                "sql": "SELECT * FROM crosschain.metrics.overview LIMIT 10;",
            },
        },
    )
    print(res.status_code, res.text)

Security scan

1 finding

  • Payment address changed recently in payment
    Payment address on Base changed from 0xa4e7d07aa38c882bcdd6b5ff2ca0b3589b3100d4 to 0x9044645d806efacc0873aaee0ad3dca6079e961d; Payment address on Solana changed from CaqD8bXkpJaRLnNbz4gbi8HjooTQCRCydxL5sYpEz4AF to CR3qKJsKN3YSzNj7B67qUGHCvE5MVwH5sZiTWwhTiF5y

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed4025.5 s$0.01
8 h agoPassed4021.5 s$0.01
13 h agoPassed402948 ms$0.01
18 h agoPassed4022.8 s$0.01
22 h agoPassed4021.4 s$0.01
Show 10 older checks
27 h agoPassed402909 ms$0.01
32 h agoPassed402920 ms$0.01
36 h agoPassed4021.4 s$0.01
41 h agoPassed402864 ms$0.01
45 h agoPassed402834 ms$0.01
2 days agoPassed4021.5 s$0.01
2 days agoPassed4021.2 s$0.01
2 days agoPassed4021.5 s$0.01
3 days agoPassed402873 ms$0.01
3 days agoPassed4021.4 s$0.01

History

17 Oct 2026Payment address on Base changed from 0xa4e7d07aa38c882bcdd6b5ff2ca0b3589b3100d4 to 0x9044645d806efacc0873aaee0ad3dca6079e961d; Payment address on Solana changed from CaqD8bXkpJaRLnNbz4gbi8HjooTQCRCydxL5sYpEz4AF to CR3qKJsKN3YSzNj7B67qUGHCvE5MVwH5sZiTWwhTiF5y
17 Oct 2026Payment address on Base changed from 0x1d2f6ccdc5314a4a22cd709f432421e23873b949 to 0xa4e7d07aa38c882bcdd6b5ff2ca0b3589b3100d4; Payment address on Solana changed from 4RJQZb4NcNKVs1GbJDiaGzHN3g73QETURdEhrAWSe5Tm to CaqD8bXkpJaRLnNbz4gbi8HjooTQCRCydxL5sYpEz4AF
17 Oct 2026Payment address on Base changed from 0xd2e68d0ef649f795c322591389da8e20090f88e5 to 0x1d2f6ccdc5314a4a22cd709f432421e23873b949; Payment address on Solana changed from Ex76AnqKjodKH11Hc1qpAjAxcJfgVLwvfF3zwxu3acu4 to 4RJQZb4NcNKVs1GbJDiaGzHN3g73QETURdEhrAWSe5Tm
17 Oct 2026Payment address on Base changed from 0xb96c4acc90e19c6f23a6e8d3a46cfc70ea0a3b8e to 0xd2e68d0ef649f795c322591389da8e20090f88e5; Payment address on Solana changed from 3qyu7D85d6brRjf3FYFtGaw4EBuHmP5hcxJNDJkrNmRs to Ex76AnqKjodKH11Hc1qpAjAxcJfgVLwvfF3zwxu3acu4
16 Oct 2026Payment address on Base changed from 0xf1cc061cfbfe534f5cdfdb5a14e58f2b09bbdc1f to 0xb96c4acc90e19c6f23a6e8d3a46cfc70ea0a3b8e; Payment address on Solana changed from GwzPGydowg91gBQvivA2eFssGu8ugCDo4oiAvdMx3njP to 3qyu7D85d6brRjf3FYFtGaw4EBuHmP5hcxJNDJkrNmRs
16 Oct 2026Payment address on Base changed from 0x54f77e6ac51378058b8a4253f3991fa2e72933b8 to 0xf1cc061cfbfe534f5cdfdb5a14e58f2b09bbdc1f; Payment address on Solana changed from 7pbTGmX6LV6yHRGNQ4zbGZCbjcEyFXDzViMnag1c2cT5 to GwzPGydowg91gBQvivA2eFssGu8ugCDo4oiAvdMx3njP
16 Oct 2026Payment address on Base changed from 0x3017171f6fb72759409e00889efaec0f24a57282 to 0x54f77e6ac51378058b8a4253f3991fa2e72933b8; Payment address on Solana changed from 79DSUMjfHotgdeDGj3mph7muiChUTgoUDarCq8uTH5mr to 7pbTGmX6LV6yHRGNQ4zbGZCbjcEyFXDzViMnag1c2cT5
16 Oct 2026Payment address on Base changed from 0x2184cfddfa274c816312a25217e1a084c90f0cb9 to 0x3017171f6fb72759409e00889efaec0f24a57282; Payment address on Solana changed from Hw4aDVVVosQFF1PdHEjVx7xRPdLrGqGcX5AGKFjpQQ63 to 79DSUMjfHotgdeDGj3mph7muiChUTgoUDarCq8uTH5mr
16 Oct 2026Payment address on Base changed from 0xba8f10534e274302dd2f704fbf1d9efaede8f974 to 0x2184cfddfa274c816312a25217e1a084c90f0cb9; Payment address on Solana changed from 8mRxh2z76Hm8APZQYG121ALhNaCH4pUCBrgp6sNFy1AA to Hw4aDVVVosQFF1PdHEjVx7xRPdLrGqGcX5AGKFjpQQ63
15 Oct 2026Payment address on Base changed from 0xfce89da52d94b5c9d9fede5c8bcd700212360a0a to 0xba8f10534e274302dd2f704fbf1d9efaede8f974; Payment address on Solana changed from 4RYDrQnnWZp6qEE7pFiowwNnNHxdmPLVdkgbPfFxexj1 to 8mRxh2z76Hm8APZQYG121ALhNaCH4pUCBrgp6sNFy1AA
15 Oct 2026Payment address on Base changed from 0x67c12be222e474aa70906d692d4f0cc428707c7d to 0xfce89da52d94b5c9d9fede5c8bcd700212360a0a; Payment address on Solana changed from 7Buig2FtXHBwPwm5LC7SujaxuNb7DoAxAdhNJNXgVRAZ to 4RYDrQnnWZp6qEE7pFiowwNnNHxdmPLVdkgbPfFxexj1
15 Oct 2026Payment address on Base changed from 0x6bfe1c7806698713d41da825598f8a369b15139d to 0x67c12be222e474aa70906d692d4f0cc428707c7d; Payment address on Solana changed from 6iAb5kLNZSwqU1Bnx413PWNSRnu6JVRCXJPz2QgsTq3B to 7Buig2FtXHBwPwm5LC7SujaxuNb7DoAxAdhNJNXgVRAZ
15 Oct 2026Payment address on Base changed from 0xbb5146fb22329a480cfcaa76953c8a7566f2679d to 0x6bfe1c7806698713d41da825598f8a369b15139d; Payment address on Solana changed from 9FV6wMmoYmSKbwb1qZaC6M6vH77iwbDiNaZsyqQixgQs to 6iAb5kLNZSwqU1Bnx413PWNSRnu6JVRCXJPz2QgsTq3B
15 Oct 2026Payment address changed from 0x3fde9efb656a276fe29b270931d9e93d87762cbd to 0xbb5146fb22329a480cfcaa76953c8a7566f2679d
15 Oct 2026Payment address changed from 0x28b628f6540e910111d6b948a3ac8bdbbd27f2d7 to 0x3fde9efb656a276fe29b270931d9e93d87762cbd