HYCON
Search…
Getting block info at a specific height
api/v1
Path Parameter
Parameter
Type
Required
Description
height
number
Yes
Height of a specific block on the Hycon blockchain
Response - 200 OK, application/json
Parameter
Type
Description
hash
string
Hash representation of the transaction
difficulty
string
Mining difficulty of block
stateRoot
string
Hash of the world state at that block
merkleRoot
string
Merkle hash of all transactions in the block
txs
list
List of transactions in the block
height
string
Height of the block
timestamp
number
Timestamp when the block was added
Response Error Table
Status
Error
Message
404
NOT_FOUND
no block found at that height
GET/api/v1/block/height/{height}
Example request
1
$ curl -X GET http://localhost:2442/api/v1/block/height/317713 \
2
-H 'Content-Type: application/json;charset=utf-8'
Copied!
Response (Success)
1
{
2
"hash": "55FeLzZohwsp7kUyxGBRcHQJAVqRLsar6CQmZvK9ZdpM",
3
"difficulty": "1.4607536548526529e-9",
4
"stateRoot": "EpQv5Vrkisf1n9wgMH4Pec82i3FxcFhsiKi2WeKHohDf",
5
"merkleRoot": "xyw95Bsby3s4mt6f4FmFDnFVpQBAeJxBFNGzu2cX4dM",
6
"txs": [
7
{
8
"amount": "1.077076457",
9
"hash": "BLDTEDhqbUaxftUQ4oZSVAPUj5qzBrBuQ37EMNQEES1m",
10
"fee": "0.000001",
11
"from": "H23fF8ktBWYwK7aHFbPSW52LtoHcbDvmT",
12
"to": "H3ZHv2sLw7NhpDnJJVpJ85u2kmECJBZud",
13
"estimated": "1.077077457",
14
"receiveTime": 1541402086473
15
},
16
...
17
],
18
"height": "317713",
19
"timeStamp": 1541402040765
20
}
Copied!
Last modified 3mo ago
Copy link