Blocks
Retrieve information about a block identified by its revision
.
If the provided revision
is not found, the response will be null
Path parameters
revisionstringRequiredExample:
Revision can be one of:
- a block ID (hex string)
- a block number (integer)
best
stands for latest blockfinalized
stands for the finalized block
best
Query parameters
expandedbooleanOptionalExample:
Whether the returned block is expanded.
true
returnstransactions
as an array of objects with the transaction details and outputsfalse
returnstransactions
as an array of transaction IDs (hex strings)
false
Responses
200
OK
application/json
Responseone ofExample:
The response will contain information about the block identified by the provided revision
.
{"number":325324,"id":"0x0004f6cc88bb4626a92907718e82f255b8fa511453a78e8797eb8cea3393b215","size":373,"parentID":"0x0004f6cb730dbd90fed09d165bfdf33cc0eed47ec068938f6ee7b7c12a4ea98d","timestamp":1533267900,"gasLimit":11253579,"beneficiary":"0xb4094c25f86d628fdd571afc4077f0d0196afb48","gasUsed":21000,"totalScore":1029988,"txsRoot":"0x89dfd9fcd10c9e53d68592cf8b540b280b72d381b868523223992f3e09a806bb","txsFeatures":0,"stateRoot":"0x86bcc6d214bc9d8d0dedba1012a63c8317d19ce97f60c8a2ef5c59bbd40d4261","receiptsRoot":"0x15787e2533c470e8a688e6cd17a1ee12d8457778d5f82d2c109e2d6226d8e54e","com":true,"signer":"0xab7b27fc9e7d29f9f2e5bd361747a5515d0cc2d1","isTrunk":true,"isFinalized":false,"transactions":["0x284bba50ef777889ff1a367ed0b38d5e5626714477c40de38d71cedd6f9fa477"]}
all ofOptional
The response will contain information about the block identified by the provided revision
. The transactions
field contains an array of transaction IDs.
and
and
and
all ofOptional
The response will contain information about the block identified by the provided revision
. The transactions
field contains an array of transactions, expanded to include their receipts.
and
and
and
400
Bad Request
text/plain
get
GET /blocks/{revision} HTTP/1.1
Host: vet.nownodes.io
Accept: */*
{
"number": 325324,
"id": "0x0004f6cc88bb4626a92907718e82f255b8fa511453a78e8797eb8cea3393b215",
"size": 373,
"parentID": "0x0004f6cb730dbd90fed09d165bfdf33cc0eed47ec068938f6ee7b7c12a4ea98d",
"timestamp": 1533267900,
"gasLimit": 11253579,
"beneficiary": "0xb4094c25f86d628fdd571afc4077f0d0196afb48",
"gasUsed": 21000,
"totalScore": 1029988,
"txsRoot": "0x89dfd9fcd10c9e53d68592cf8b540b280b72d381b868523223992f3e09a806bb",
"txsFeatures": 0,
"stateRoot": "0x86bcc6d214bc9d8d0dedba1012a63c8317d19ce97f60c8a2ef5c59bbd40d4261",
"receiptsRoot": "0x15787e2533c470e8a688e6cd17a1ee12d8457778d5f82d2c109e2d6226d8e54e",
"com": true,
"signer": "0xab7b27fc9e7d29f9f2e5bd361747a5515d0cc2d1",
"isTrunk": true,
"isFinalized": false,
"transactions": [
"0x284bba50ef777889ff1a367ed0b38d5e5626714477c40de38d71cedd6f9fa477"
]
}