Skip to content
Fourohtwo

On-chain data query on Base, sold by Taifoon

coord.taifoon.dev/v1/x402/class/data.onchain_query

On-chain data query on Base, sold by Taifoon: the tokens and fee tier of a Uniswap V3 pool, or the hash of a block. An admitted data seller answers; Taifoon reads the same facts from the chain and grades the answer before you are charged. A failed answer is not charged. Answer + graded receipt. 0.013714 USDC a call.

BaseAnswering
POSThttps://coord.taifoon.dev/v1/x402/class/data.onchain_query

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://coord.taifoon.dev/v1/x402/class/data.onchain_query", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"input":{"pool":"0xd0b53D9277642d899DF5C87A3966A349A798F224","chainId":8453,"question":"pool_tokens"}}),
});
console.log(await res.json());

Example input

{
  "input": {
    "pool": "0xd0b53D9277642d899DF5C87A3966A349A798F224",
    "chainId": 8453,
    "question": "pool_tokens"
  }
}