Skip to main content

Get Block Information

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

Endpoint

GET https://api.spacescan.io/block/{block_height}

Parameters

ParameterTypeRequiredDescription
block_heightstringYesThe height of the block to fetch
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/{block_height}" \
-H "x-api-key: YOUR_API_KEY"

Live API Test

Request Examples

curl -X GET "https://api.spacescan.io/block/6555398"

Response Schema

FieldTypeDescription
numberstringBlock height
hashstringHash of the block
typestringType of block ("Transaction block" or "Non Transaction block")
timestampstringTimestamp of block creation (nullable)
farmer_addressstringAddress of the farmer who created the block
pool_addressstringAddress of the pool
plotstringPlot size used (e.g., "K32")
block_rewardnumberTotal block reward
pool_amountnumberAmount rewarded to pool
farmer_amountnumberAmount rewarded to farmer
transferred_amountnumberTotal amount transferred in the block
addition_countnumberNumber of coin additions
removal_countnumberNumber of coin removals
reward_countnumberNumber of rewards

Example Response

{
"number": "6555398",
"hash": "0xb19a4d7fb21b7b92c890c294f6132bfbb059ff7bb713f211d4b18e4204ef18e5",
"type": "Non Transaction block",
"timestamp": null,
"farmer_address": "xch17yszydqqpqd5kk9c86hah7jndvcxcp2u2mhxfyvzf6gucp0c3pzszy8jde",
"pool_address": "xch182d6s8mf82k9hfmmc8jzla2lmfxt426830d3xq44l0ny8x8jwtxswru4he",
"plot": "K32",
"block_reward": 1,
"pool_amount": 0.875,
"farmer_amount": 0.125,
"transferred_amount": 0,
"addition_count": 0,
"removal_count": 0,
"reward_count": 0
}

Response Headers

HeaderDescription
Content-Typeapplication/json
Cache-ControlCaching directives for the response

Error Responses

HTTP Status CodeMeaning
400Bad Request -- Invalid block height
404Not Found -- Block not found
429Too Many Requests -- You're requesting too many times
500Internal Server Error -- We had a problem with our server
503Service Unavailable -- We're temporarily offline for maintenance

Notes

  • Block rewards are denominated in XCH
  • The timestamp may be null for non-transaction blocks
  • Addition and removal counts indicate transaction activity
  • Reward count shows the number of reward-related transactions