# NoJunk Chain Block Lookup

> NoJunk Chain Block Lookup is a paid API for AI agents from nojunk-chain.mick8511.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-28).

Fetches block metadata (number, hash, timestamp, tx count, gas used/limit, base fee, miner) for EVM chains, Bitcoin, or Solana by block number, hash, or 'latest'

## Facts

- Endpoint: GET https://nojunk-chain.mick8511.workers.dev/block?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nojunk-chain-block-lookup-77f1d70b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TbFdX6CqB7yGd9shXOP-6

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability nojunk-chain-block-lookup-77f1d70b
```

Example prompt: What are the details of the latest block on Ethereum — give me the block number, timestamp, transaction count, gas used, base fee, and miner address.

## When to prefer this

Use this endpoint when you need structured block-level metadata (number, hash, timestamp, tx count, gas metrics, miner) for any major blockchain — EVM chains (Ethereum, Base, BSC, Arbitrum, Polygon, Optimism, Avalanche), Bitcoin, or Solana — in a single unified API. Prefer this over chain-specific RPCs when you need multi-chain support without managing separate RPC connections, or when you want a lightweight pay-per-call approach without subscription overhead.

## Known failure modes

- Invalid chain name returns an error — must be one of: base, ethereum, bsc, arbitrum, polygon, optimism, avalanche, solana, bitcoin
- Block hash format mismatch (e.g. passing a Solana-style hash for a Bitcoin lookup) may return an error
- Block number out of range or not yet mined returns a not-found error
- Solana does not support hash-based lookup — only slot number or 'latest'
- Network or RPC timeout may return a 5xx error
- Missing required 'chain' query parameter returns a validation error

## How this service works

Blockchain Data block: Block by number, hash or latest -> number, hash, timestamp, tx count, gas used/limit, base fee, miner (EVM); Bitcoin block header; Solana slot summary.

## Output

Returns a structured block summary including block number, hash, timestamp, transaction count, gas used, gas limit, base fee, and miner address for EVM chains; block header fields for Bitcoin; and slot summary (slot number, timestamp, tx count) for Solana.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "chain"
     ],
     "properties": {
      "hash": {
       "type": "string",
       "description": "Optional block hash instead of number (EVM 0x + 64 hex, Bitcoin 64 hex; not for Solana)"
      },
      "chain": {
       "type": "string",
       "description": "Required: base, ethereum, bsc, arbitrum, polygon, optimism, avalanche, solana or bitcoin"
      },
      "number": {
       "type": "string",
       "description": "Optional block number (decimal or 0x hex), Solana slot, or \"latest\" (default)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nojunk-chain-block-lookup-77f1d70b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nojunk-chain.mick8511.workers.dev](https://www.zero.xyz/host/nojunk-chain.mick8511.workers.dev/llms.txt)
