GetLatestTxBlock


Returns the details of the most recent Transaction block.

Example Request

curl -d '{
"id": "1",
"jsonrpc": "2.0",
"method": "GetLatestTxBlock",
"params": [""]
}' -H "Content-Type: application/json" -X POST "https://api.zilliqa.com/"

Example Response

{
"id": "1",
"jsonrpc": "2.0",
"result": {
"body": {
"BlockHash": "01a61cc22ab5ae1d77cd6da65385771dca408fbea90688c845bdd2ffe1797bb7",
"HeaderSign": "DEACD285A5D2AED23052B08BE9CEEE1C9C4C8CB69F3DF4106D87BA9B0AC067E16AA2C5D129F2318824723A2A75CA5F32632DCD4E5D8A634234E1037B6025779D",
"MicroBlockInfos": [
{
"MicroBlockHash": "8cf6285c259613a79c7b5dfcfbada4f9631fa15d626037f048d1d9a9649d562c",
"MicroBlockShardId": 0,
"MicroBlockTxnRootHash": "0000000000000000000000000000000000000000000000000000000000000000"
},
{
"MicroBlockHash": "01d7da6e80b81711aaf7cdbc74bc50994f4ed99be085d451c93abe31882e8b44",
"MicroBlockShardId": 1,
"MicroBlockTxnRootHash": "0000000000000000000000000000000000000000000000000000000000000000"
},
{
"MicroBlockHash": "1eaf0a468eff13a2d7ecd33b5177fb850bdfce23bca3a330ecef951bde44eb62",
"MicroBlockShardId": 2,
"MicroBlockTxnRootHash": "fa80cb720f7612229909295640266eb618cc2a73dd78da17b4d68d7ffc7cce82"
},
{
"MicroBlockHash": "bf86108de525ba4954e40631949ad71f7f7b0a620f350da2c736f92aa157d2ba",
"MicroBlockShardId": 3,
"MicroBlockTxnRootHash": "0000000000000000000000000000000000000000000000000000000000000000"
}
]
},
"header": {
"BlockNum": "589789",
"DSBlockNum": "5898",
"GasLimit": "325000",
"GasUsed": "1",
"MbInfoHash": "ba2a326bcc595fae5ddcbdc5d53cca06ce7c8d1d046ffb635341e3aa9d5cbb7c",
"MinerPubKey": "0x0207FF35CFA9F3D8336430BBD09BBF9B36C283358E8CA91FAB551ACB5FE1E38B68",
"NumMicroBlocks": 4,
"NumTxns": 1,
"PrevBlockHash": "be825dd949caf36d6a20372fdc88b1912dc1515d1ecf8624e6cd928b33c9a705",
"Rewards": "1000000000",
"StateDeltaHash": "c2c43d6a277a92df12d7d5ab5c657d6a7d823000061da5802c6354b47e56ebd5",
"StateRootHash": "d00196c0a8f28d81e49253a1a561da79a526a47e12b4e208da20b96a6e3a1ac7",
"Timestamp": "1590645487342412",
"Version": 1
}
}
}

HTTP Request

Chain(s)URL(s)
Zilliqa mainnethttps://api.zilliqa.com/
Developer testnethttps://dev-api.zilliqa.com/
Local testnethttp://localhost:4201/
Isolated serverhttp://localhost:5555/

Arguments

ParameterTypeRequiredDescription
idstringRequired"1"
jsonrpcstringRequired"2.0"
methodstringRequired"GetLatestTxBlock"
paramsstringRequiredEmpty string ""