Get block by number
GET/blocks/:blockNumber
Get block by number
Request
Path Parameters
blockNumber integerrequired
Block Number
Responses
- 200
- 404
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
result
object
hash string
number integer
parentHash string
transactions string[]
nonce integer
mixHash string
logsBloom string
stateRoot string
transactionsRoot string
receiptsRoot string
coinbase string
difficulty integer
totalDifficulty integer
extraData string
size integer
gasLimit integer
gasUsed integer
baseFeePerGas string
timestamp integer
{
"result": {
"hash": "string",
"number": 0,
"parentHash": "string",
"transactions": [
"string"
],
"nonce": 0,
"mixHash": "string",
"logsBloom": "string",
"stateRoot": "string",
"transactionsRoot": "string",
"receiptsRoot": "string",
"coinbase": "string",
"difficulty": 0,
"totalDifficulty": 0,
"extraData": "string",
"size": 0,
"gasLimit": 0,
"gasUsed": 0,
"baseFeePerGas": "string",
"timestamp": 0
}
}
not found
- application/json
- Schema
- Example (from schema)
Schema
errorCode integer
message string
{
"errorCode": 0,
"message": "string"
}
internal error
- application/json
- Schema
- Example (from schema)
Schema
errorCode integer
message string
{
"errorCode": 0,
"message": "string"
}
Loading...
Was this helpful?
Happy React is loading...