-
Notifications
You must be signed in to change notification settings - Fork 29
RestApis ListOfBlocks
Davide Miceli edited this page Jan 28, 2019
·
2 revisions
Returns the list of validated blocks stored on the ledger.
POST
/api/block/list
None
Field | Optional | Type | Description |
---|---|---|---|
pag |
yes | integer | The block list page |
[
{
"id": "024d98421602df2324c2157673064e546e870911bb5d61858c9a902162cf68db",
"event_id": "72614870-89ce-422e-ae4f-a3a477a7f9e3",
"organization": "brandName",
"generated_time": 1548709699339,
"data": "Hello 3-0.39351377205147653!"
},
{
"id": "751f311e877e1a218ce830ccde99a45924a114ff2c0fff92e6cb0930415347af",
"event_id": "79d21a30-8d1a-4a52-a760-21fea4d6af14",
"organization": "brandName",
"generated_time": 1548709699250,
"data": "{\"ok\":\"test\",\"num\":0.21926638211322436}"
},
{
"id": "f08b02683584f561057dfef3eeec6b5ee1fc3ef640f0c719c0ad1029b8e6f408",
"event_id": "0c6780df-9b5f-4510-9142-bbbeaa432367",
"organization": "brandName",
"generated_time": 1548709706736,
"data": "Hello 1-0.4765961457937897!"
}
]
curl -X POST http://<peer-host>/api/block/list -H "Content-Type: application/json" --data-binary '{"pag":1}' --compressed