/rest/block/{blockhash} - Dash

Returns a full block, including its transactions, as JSON for a given block hash over the REST interface.

Endpoint

httpGET /rest/block/{blockhash}.json

Path Parameters

ParameterTypeDescription
blockhashstringHash of the block

Example

bashexport DASH_REST=https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/

curl "${DASH_REST}rest/block/000000000000000abc12def34567890fedcba9876543210abcdef1234567890ff.json"

Response

json{
    "hash": "000000000000000abc12def34567890fedcba9876543210abcdef1234567890ff",
    "height": 2100000,
    "time": 1730000000,
    "chainlock": true,
    "tx": [
        {
            "txid": "3a1f9c2e7b4d8a05f6c1e3d9b2a4c6e8f0d1b3a5c7e9f2d4b6a8c0e1f3d5b7a9c"
        }
    ]
}

Response Fields

FieldTypeDescription
heightnumberBlock height
txarrayFull transactions in the block
chainlockbooleanChainLock protection status

Use Cases

  • Block Reads: Fetch a full block over REST
  • Indexing: Ingest block + txs in one request
  • Explorers: Render block pages

Error Handling

ErrorMessageDescription
404 / Not FoundNot foundNo block matches the hash
403 / RBAC: access deniedAccess deniedThe GetBlock access token is missing or incorrect