Docs

Blocks — Query Blocks (Move REST)

Get blocks by height or version from the Move chain.

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)

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

Code Examples

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