Skip to main content

Get Peak Block

This endpoint allows you to fetch information about the latest (peak) block in the blockchain.

Endpoint

GET https://api.spacescan.io/block/peak

Parameters

No parameters required for this endpoint.

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/peak" \
-H "x-api-key: YOUR_API_KEY"

Live API Test

Request Examples

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

Response Schema

FieldTypeDescription
numberstringBlock height of the peak block
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

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
}

Response Headers

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

Error Responses

HTTP Status CodeMeaning
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

  • The peak block represents the latest block in the blockchain
  • Block rewards are denominated in XCH
  • The timestamp may be null for non-transaction blocks
  • The type field indicates whether the block contains transactions