{
  "x402Version": 2,
  "id": 29287,
  "slug": "29287",
  "resource": "https://api.agentstools.dev/btc/block",
  "description": "Bitcoin block metadata by height or hash (or the chain tip when neither is given), fused with the current difficulty-adjustment context, a computed halving countdown and a network hashrate snapshot. Informational, not advice.",
  "type": "http",
  "serviceName": "btc-block",
  "resourceType": "Blockchain Data",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xF22e558a00D91Ee12A1F50C52186FecB8dDFf493",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "8000",
      "amountUsd": 0.008,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "height": 800000
          },
          "type": "http"
        },
        "output": {
          "example": {
            "block": {
              "confirmations": 157155,
              "difficulty": 53911173001054.586,
              "height": 800000,
              "tx_count": 3721
            },
            "difficulty_adjustment": {
              "progress_percent": 77.9,
              "remaining_blocks": 445
            },
            "halving": {
              "blocks_until_halving": 92845,
              "current_block_subsidy_btc": 3.125,
              "next_halving_height": 1050000
            },
            "hashrate": {
              "current_hashrate_ehs": 907.29
            },
            "sources": {
              "partial": false
            }
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET",
                  "HEAD",
                  "DELETE"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "hash": {
                    "description": "Block hash (64 hex characters); alternative to height",
                    "type": "string"
                  },
                  "height": {
                    "description": "Block height; omit height and hash for the chain tip",
                    "type": "integer"
                  }
                },
                "required": [],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bitcoin",
    "btc",
    "block",
    "halving",
    "difficulty",
    "bazaar"
  ],
  "sourceHost": "api.agentstools.dev",
  "lastUpdated": "2026-10-08T06:08:30.033Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-08T06:08:29.801Z"
  },
  "metadata": {
    "serviceName": "btc-block",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "height": 800000
            },
            "type": "http"
          },
          "output": {
            "example": {
              "block": {
                "confirmations": 157155,
                "difficulty": 53911173001054.586,
                "height": 800000,
                "tx_count": 3721
              },
              "difficulty_adjustment": {
                "progress_percent": 77.9,
                "remaining_blocks": 445
              },
              "halving": {
                "blocks_until_halving": 92845,
                "current_block_subsidy_btc": 3.125,
                "next_halving_height": 1050000
              },
              "hashrate": {
                "current_hashrate_ehs": 907.29
              },
              "sources": {
                "partial": false
              }
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET",
                    "HEAD",
                    "DELETE"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "properties": {
                    "hash": {
                      "description": "Block hash (64 hex characters); alternative to height",
                      "type": "string"
                    },
                    "height": {
                      "description": "Block height; omit height and hash for the chain tip",
                      "type": "integer"
                    }
                  },
                  "required": [],
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "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": "api.agentstools.dev",
    "manifest_name": "api.agentstools.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"
  }
}