TRON
walletsolidity/getblock25 kredi
Returns a solidified block by number or hash; detail=false returns the header only, detail=true the full transactions.
Parametreler
| Ad | Tür | Açıklama |
|---|---|---|
| id_or_num | string | Block height or block hash; when omitted the latest solidified block is returned. (isteğe bağlı) |
| detail | boolean | true = full block with transactions; false (default) = block header and blockID only. (isteğe bağlı) |
Dönüş değeri
Tür
Object
Block object: blockID (block hash) and block_header (raw_data: number, timestamp in ms, txTrieRoot, parentHash, witness_id, witness_address, version, accountStateRoot; witness_signature); transactions (txID, raw_data, raw_data_hex, signature, ret, visible) are included only when detail is true and the block is not empty. {} when the block is not found.
Kod örnekleri
curl 'https://holy-burned-sky-tron-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7/walletsolidity/getblock' \
-X POST \
-H 'content-type: application/json' \
-d '{
"id_or_num": "1000000",
"detail": false
}'