요금GitHub대시보드

TRON

walletsolidity/getblockbylatestnum25 크레딧

Returns the most recent N solidified blocks (1 to 99).

네트워크: tron

매개변수

이름타입설명
numnumberNumber 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
}'