x402basequality 0.62

Multi-chain gas price lookup via x402 micropayment — part of a 26-endpoint DeFi intelligence API.

Price
per_call
Protocol
x402
Verified
no

What it does

The `/defi/gas` endpoint on the DeFi Intelligence API at defi.hugen.tokyo returns current gas prices for one or more EVM chains. You supply a comma-separated list of chain IDs (e.g., `1,137,8453` for Ethereum, Polygon, and Base) and receive standard, fast, and instant gas-price tiers for each chain. The endpoint is part of a broader suite of 26 DeFi security and data endpoints covering token audits, rugpull detection, bridge routing, protocol analytics, TVL, DEX volume, and more.

Payment is handled via the x402 protocol: each call costs $0.01 USDC on Base. No API keys or rate limits are required — you simply attach an x402 payment header to each request. Alternative access methods are available including a broker API (with a free $0.05 credit), an MCP server at mcp.hugen.tokyo, and a Python SDK (`x402-pay`). The endpoint was confirmed live, returning a 402 challenge with sample gas data for Ethereum and Polygon.

The API is documented via an OpenAPI 3.1 spec served at `/openapi.json` and interactive Swagger docs at `/docs`. Response schemas for the gas endpoint are not explicitly defined in the OpenAPI spec (the 200 response schema is empty), but the 402 challenge includes a sample showing per-chain objects with `standard`, `fast`, and `instant` fields containing gas price values.

Capabilities

gas-price-lookupmulti-chain-evmx402-micropaymentdefi-datareal-time-gas

Use cases

  • Querying current gas prices across multiple EVM chains before submitting transactions
  • Building a gas-cost comparison dashboard for Ethereum, Polygon, Base, and BSC
  • Automating transaction timing by monitoring gas tiers (standard/fast/instant)
  • Feeding gas estimates into a DeFi agent that optimizes bridge or swap execution
  • Displaying real-time gas fees in a wallet or portfolio app

Fit

Best for

  • Agents or bots that need real-time gas prices across multiple chains in a single call
  • Developers who want DeFi data without managing API keys or upstream service accounts
  • Low-volume, pay-per-call usage at $0.01 per request via x402

Not for

  • High-frequency trading systems needing sub-second gas updates (pay-per-call overhead may be prohibitive)
  • Non-EVM chains — the gas endpoint uses numeric chain IDs for EVM networks only

Quick start

# Using the x402-pay Python SDK
pip install x402-pay

import x402_pay
resp = x402_pay.get('https://defi.hugen.tokyo/defi/gas?chains=1,137,8453')
print(resp.json())

Example

Response

{
  "polygon": {
    "fast": "80",
    "instant": "120",
    "standard": "50"
  },
  "ethereum": {
    "fast": "45",
    "instant": "60",
    "standard": "30"
  }
}

Endpoint

Transporthttp
Protocolx402
Pay to0x29322Ea7EcB34aA6164cb2ddeB9CE650902E4f60
CurrencyUSD COIN

Quality

0.62/ 1.00

The endpoint is live (402 challenge confirmed) with a full OpenAPI 3.1 spec covering all 26 endpoints. However, the response schema for /defi/gas is empty (no formal JSON schema), and the only response example comes from the 402 challenge payload. No dedicated pricing page or detailed documentation beyond the Swagger UI was found.

Warnings

  • Response schema for /defi/gas is not defined in the OpenAPI spec — the 200 response schema is empty.
  • Sample gas data in the 402 challenge may be illustrative rather than a guaranteed response format.
  • Root URL returns 404; no standalone documentation, pricing, or README pages exist.
  • Units of gas price values (gwei, wei, or other) are not documented.

Citations

Provenance

Indexed fromx402_bazaar
Enriched2026-04-22 02:19:08Z · anthropic/claude-opus-4.6 · v2
First seen2026-04-21
Last seen2026-04-22

Agent access

Multi-chain gas price lookup via x402 micropayment — part of a 26-endpoint DeFi intelligence API. — Clawmart · Clawmart