{
  "service": "NoJunk Chain",
  "description": "Multi-chain wallet balances, gas prices, transaction and block lookups across 7 EVM chains, Solana and Bitcoin. Pay per call with USDC on Base (x402). No API key.",
  "openapi": "https://nojunk-chain.mick8511.workers.dev/openapi.json",
  "health": "https://nojunk-chain.mick8511.workers.dev/health/data",
  "chains": {
    "evm": [
      "base",
      "ethereum",
      "bsc",
      "arbitrum",
      "polygon",
      "optimism",
      "avalanche"
    ],
    "other": [
      "solana",
      "bitcoin"
    ]
  },
  "endpoints": {
    "/balance": {
      "methods": [
        "GET",
        "POST"
      ],
      "url": "https://nojunk-chain.mick8511.workers.dev/balance",
      "price": "$0.002 USDC on Base per successful request (x402)",
      "example": "https://nojunk-chain.mick8511.workers.dev/balance?address=0x6f762720b8515b7091e6aa69e8361f7b9909233f&chain=base",
      "description": "Wallet address -> native balance, USDC balance and transaction count on 7 EVM chains (one or all in parallel), Solana (SOL + USDC) or Bitcoin."
    },
    "/gas": {
      "methods": [
        "GET",
        "POST"
      ],
      "url": "https://nojunk-chain.mick8511.workers.dev/gas",
      "price": "$0.001 USDC on Base per successful request (x402)",
      "example": "https://nojunk-chain.mick8511.workers.dev/gas?chain=base",
      "description": "Current gas price, base fee and priority-fee percentiles in gwei for one or all 7 EVM chains (eth_feeHistory, 5 blocks), or Bitcoin sat/vB fee estimates."
    },
    "/tx": {
      "methods": [
        "GET",
        "POST"
      ],
      "url": "https://nojunk-chain.mick8511.workers.dev/tx",
      "price": "$0.002 USDC on Base per successful request (x402)",
      "example": "https://nojunk-chain.mick8511.workers.dev/tx?hash=0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060&chain=base",
      "description": "Transaction hash -> status, from/to, value, gas used, fee, confirmations and decoded ERC-20 transfers (EVM); Bitcoin tx with inputs/outputs; Solana tx with signers, programs and balance changes."
    },
    "/block": {
      "methods": [
        "GET",
        "POST"
      ],
      "url": "https://nojunk-chain.mick8511.workers.dev/block",
      "price": "$0.001 USDC on Base per successful request (x402)",
      "example": "https://nojunk-chain.mick8511.workers.dev/block?chain=base&number=latest",
      "description": "Block by number, hash or latest -> number, hash, timestamp, tx count, gas used/limit, base fee, miner (EVM); Bitcoin block header; Solana slot summary."
    }
  },
  "params": {
    "/balance": {
      "address": "required: 0x EVM, Solana base58 or Bitcoin address",
      "chain": "optional: base|ethereum|bsc|arbitrum|polygon|optimism|avalanche|solana|bitcoin|all (default all EVM / solana / bitcoin by address type)"
    },
    "/gas": {
      "chain": "optional: base|ethereum|bsc|arbitrum|polygon|optimism|avalanche|bitcoin|all (default all EVM)"
    },
    "/tx": {
      "hash": "required: 0x + 64 hex (EVM), 64 hex (Bitcoin) or base58 signature (Solana)",
      "chain": "required for EVM hashes; bitcoin/solana inferred"
    },
    "/block": {
      "chain": "required",
      "number": "optional: decimal, 0x hex, Solana slot or latest (default)",
      "hash": "optional: block hash (EVM, Bitcoin)"
    }
  },
  "sources": {
    "evm": "publicnode.com JSON-RPC",
    "solana": "publicnode.com Solana JSON-RPC",
    "bitcoin": "mempool.space REST API"
  },
  "limits": {
    "timeout_seconds": 8,
    "max_request_bytes": 16384,
    "erc20_transfers_max": 100
  },
  "no_charge_on": [
    "400 invalid input",
    "404 transaction/block not found",
    "413 request too large",
    "502 node unavailable (for chain=all: every chain failed)"
  ],
  "configured": true,
  "facilitator": "cdp"
}