跳到主要内容

Block Information

Retrieve Block Details

This endpoint allows you to fetch detailed information about a specific block using its height or hash.

Endpoint

GET https://api.spacescan.io/block/info/{block_identifier}

Parameters

ParameterTypeDescription
block_identifierstringThe block height or block hash
Free API

Use api.spacescan.io for free tier access. See our API Plans for rate limits and features.

Pro API

Use pro-api.spacescan.io with your API key in the x-api-key header. See our API Plans for details.

curl -X GET "https://pro-api.spacescan.io/block/info/{block_identifier}" \
-H "x-api-key: YOUR_API_KEY"

Live API Test

Request Example

Response

Failed to load API response. Please try again later.

Response Schema

FieldTypeDescription
statusstringThe status of the API request
blockobjectDetailed information about the requested block
block.heightnumberThe height of the block
block.timestampstringThe timestamp when the block was created
block.weightnumberThe weight of the block
block.prev_hashstringThe hash of the previous block
block.farmer_puzzle_hashstringThe puzzle hash of the farmer who created the block
block.feesstringThe total fees in the block
block.transactions_countnumberThe number of transactions in the block

Error Responses

HTTP Status CodeMeaning
400Bad Request -- Your request is invalid.
404Not Found -- The specified block could not be found.
429Too Many Requests -- You're requesting too many blocks! Slow down!
500Internal Server Error -- We had a problem with our server. Try again later.
503Service Unavailable -- We're temporarily offline for maintenance. Please try again later.

Notes

  • You can use either block height or block hash as the block identifier.
  • All timestamps are returned in ISO 8601 format: YYYY-MM-DDTHH:mm:ss.sssZ
  • The API does not require authentication for this endpoint

For any additional information or support, please contact our API support team or refer to our comprehensive API documentation.