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
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| height | string | path | Yes | Block height |
| version | string | path | Yes | Ledger 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"