Skip to main content

Blocks — Query Blocks

Overview#

Fetch block data by height or by version.

Endpoints#

GET /v1/blocks/by_height/{height}

GET /v1/blocks/by_version/{version}

Request#

Parameters#

NameTypeLocationRequiredDescription
heightstringpathYesBlock height
versionstringpathYesLedger version

Response#

Success Response (200)#

{ "block_height": "0", "block_hash": "0x...", "first_version": "0" }

Code Examples#

curl -X GET https://api-movement-mainnet.n.dwellir.com/YOUR_API_KEY/v1/blocks/by_height/0 -H "Accept: application/json"