/v1/blocks

Parameters

Type

Name

Description

Schema

Path

Round required

The round from which to fetch the block information

integer

Query

format optional

Configures whether the response object is JSON or MessagePack encoded.

enum (json, msgpack)

Returns

Encoded block object

Example

//Request
curl -X GET http://<your-app-id>.ankr.com/v1/blocks/{1} -H "accept: application/json"
//Response
{
"hash":"43JTXDLUX4HMKHCCT7BVN2G47IANUQCKGFBFFVZ7ULOGQODP2QJA",
"previousBlockHash":"YJZOZDOPATE6P7GZFHTNHQRANB4RNDUNQ7EQVVPSVJ5K7T5OJXTQ",
"seed":"OJZYRWCGXSPVU67ZPKJPM4QFYSOLNGJCMPLUVO7U3JQMJVMBS7OA",
"proposer":"EYOZMULFFZZ5QDDMWQ64HKIMUPPNEL3WJMNGAFD43L52ZXTPESBEVJPEZU",
"round":1,
"period":0,
"txnRoot":"WRS2VL2OQ5LPWBYLNBCZV3MEQ4DACSRDES6IUKHGOWYQERJRWC5A",
"reward":0,
"rate":20000000,
"frac":20000000,
"txns":{
},
"timestamp":1560211225,
"currentProtocol":"https://github.com/algorandfoundation/specs/tree/5615adc36bad610c7f165fa2967f4ecfa75125f0",
"nextProtocol":"",
"nextProtocolApprovals":0,
"nextProtocolVoteBefore":0,
"nextProtocolSwitchOn":0,
"upgradePropose":"",
"upgradeApprove":false
}