TRON
walletsolidity/getblockbylatestnum25 额度
Returns the most recent N solidified blocks (1 to 99).
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| num | number | Number of latest blocks to return, from 1 to 99; other values return {}. |
返回值
类型
Object
Object with a block array of block objects (blockID, block_header, transactions) in ascending height order.
代码示例
curl 'https://holy-burned-sky-tron-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7/walletsolidity/getblockbylatestnum' \
-X POST \
-H 'content-type: application/json' \
-d '{
"num": 2
}'