{
  "x402Version": 2,
  "id": 39997,
  "slug": "39997",
  "resource": "https://coord.taifoon.dev/v1/x402/class/data.onchain_query",
  "description": "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.03 USDC a call.",
  "type": "http",
  "resourceType": "Market Data",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x3574999dd4c96eB73Bd6e11D4177010C83E14f5b",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "30000",
      "amountUsd": 0.03,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "input": {
              "chainId": 8453,
              "pool": "0xd0b53D9277642d899DF5C87A3966A349A798F224",
              "question": "pool_tokens"
            }
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "answer": {
              "fee": 500,
              "token0": "0x… (WETH)",
              "token1": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
            },
            "chain_id": 8453,
            "class": "data.onchain_query",
            "grade": {
              "checks": {
                "answer_exact": true,
                "data_present": true,
                "fee_exact": true,
                "no_error": true
              },
              "ok": true,
              "read": {
                "source": "eth_call token0()/token1()/fee() over the Base rotation"
              }
            },
            "ok": true,
            "question": "pool_tokens",
            "receipt": {
              "cache": {
                "hit": false
              },
              "digest": "0x…",
              "seller": "graphadvocate.com"
            },
            "sale": {
              "id": "rs_…",
              "margin_units": "20000",
              "payment_tx": "0x…",
              "price_units": "30000",
              "seller_units": "10000"
            },
            "subject": "0xd0b53d9277642d899df5c87a3966a349a798f224"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "input": {
                    "properties": {
                      "block": {
                        "description": "block_hash: a block number",
                        "type": "integer"
                      },
                      "chainId": {
                        "enum": [
                          8453
                        ],
                        "type": "integer"
                      },
                      "pool": {
                        "description": "pool_tokens: a Uniswap V3 pool address",
                        "type": "string"
                      },
                      "question": {
                        "enum": [
                          "pool_tokens",
                          "block_hash"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "question",
                      "chainId"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "input"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "queryParams": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "coord.taifoon.dev",
  "lastUpdated": "2026-10-12T08:49:13.926Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-12T08:49:10.756Z"
  },
  "metadata": {
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "input": {
                "chainId": 8453,
                "pool": "0xd0b53D9277642d899DF5C87A3966A349A798F224",
                "question": "pool_tokens"
              }
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "answer": {
                "fee": 500,
                "token0": "0x… (WETH)",
                "token1": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
              },
              "chain_id": 8453,
              "class": "data.onchain_query",
              "grade": {
                "checks": {
                  "answer_exact": true,
                  "data_present": true,
                  "fee_exact": true,
                  "no_error": true
                },
                "ok": true,
                "read": {
                  "source": "eth_call token0()/token1()/fee() over the Base rotation"
                }
              },
              "ok": true,
              "question": "pool_tokens",
              "receipt": {
                "cache": {
                  "hit": false
                },
                "digest": "0x…",
                "seller": "graphadvocate.com"
              },
              "sale": {
                "id": "rs_…",
                "margin_units": "20000",
                "payment_tx": "0x…",
                "price_units": "30000",
                "seller_units": "10000"
              },
              "subject": "0xd0b53d9277642d899df5c87a3966a349a798f224"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "input": {
                      "properties": {
                        "block": {
                          "description": "block_hash: a block number",
                          "type": "integer"
                        },
                        "chainId": {
                          "enum": [
                            8453
                          ],
                          "type": "integer"
                        },
                        "pool": {
                          "description": "pool_tokens: a Uniswap V3 pool address",
                          "type": "string"
                        },
                        "question": {
                          "enum": [
                            "pool_tokens",
                            "block_hash"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "question",
                        "chainId"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "input"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "headers": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "method": {
                  "enum": [
                    "POST",
                    "PUT",
                    "PATCH"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "coord.taifoon.dev",
    "manifest_name": "coord.taifoon.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}