New Here? Claim Your 30% Discount on Your First Blockchain Node Access!

banner image

Last updated on January 1, 1970

1 min read

Method /block/at/public undefined ()
connect with REST protocol

/block/at/public

info-circle-fill

Gets a block from the chain that has the given height.

Parameters

height -

A BlockHeight JSON object. The block height describes the position of the block within the block chain. The first block of the chain has height one. Each subsequent block has a height which is one higher than the previous block.

Request

curl --location --request POST 'https://xem.getblock.io/block/at/public'
 --header 'x-api-key: YOUR-API-KEY'
 --header 'Content-Type: application/json'
 --data-raw '{'height':394311}'

Response

{
    "timeStamp": 23938014,
    "signature": "7756ee2ba07a4ae4563520ae7049ee3d7ecd78b3ae69b3401c4a956aa99143b24257479c525cc1d89e4aaf2bf2e7be879b158a5cff80827b94ca6f3e8fb1af0c",
    "prevBlockHash": {
        "data": "d88719d3b875894f5d138b72b645a61139c887a5014eadc45aa6d075a8ba6cd0"
    },
    "type": 1,
    "transactions": [],
    "version": 1744830465,
    "signer": "d758fea02f28cf788f3bcd408241c09088eff358305ff613dceecaaa851f32ef",
    "height": 394311
}
banner icon

Start Building with GetBlock RPCs for Free