TRON
wallet/getblockbylatestnum25 créditos
Returns the most recent N blocks (1 to 99).
Parámetros
| Nombre | Tipo | Descripción |
|---|---|---|
| num | number | Number of latest blocks to return, from 1 to 99; other values return {}. |
Valor devuelto
Tipo
Object
Object with a block array of block objects (blockID, block_header, transactions) in ascending height order.
Ejemplos de código
curl 'https://holy-burned-sky-tron-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7/wallet/getblockbylatestnum' \
-X POST \
-H 'content-type: application/json' \
-d '{
"num": 2
}'