POST
/
95e61622bf6a8af293978377718e3b77
/
wallet
/
gettransactioninfobyblocknum
wallet/gettransactioninfobyblocknum
curl --request POST \
  --url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/gettransactioninfobyblocknum \
  --header 'Content-Type: application/json' \
  --data '{
  "num": 66677878,
  "visible": true
}'
[
  {
    "id": "<string>",
    "fee": 123,
    "blockNumber": 123,
    "blockTimeStamp": 123,
    "contractResult": [
      "<string>"
    ],
    "receipt": {},
    "log": [
      {}
    ]
  }
]
TRON API method that retrieves detailed transaction information for all transactions within a specific block number.
Get you own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • num — the block number to retrieve transaction information from
  • visible — optional boolean parameter. When set to true, addresses are in base58 format. Default is false.

Response

  • Array of transaction info objects, each containing:
    • id — transaction hash
    • fee — transaction fee in sun
    • blockNumber — block number containing the transaction
    • blockTimeStamp — block timestamp
    • contractResult — contract execution result
    • receipt — transaction receipt with energy usage and result
    • log — event logs from smart contract execution

Use case

The wallet/gettransactioninfobyblocknum method is used for:
  • Analyzing all transaction details within a specific block
  • Building block explorers with detailed transaction information
  • Monitoring transaction fees and energy consumption patterns
  • Auditing smart contract execution results in a block
  • Creating comprehensive transaction analysis tools

Body

application/json
num
integer
default:66677878
required
visible
boolean
default:true

Response

200 - application/json

Transaction information for all transactions in the block

id
string
fee
integer
blockNumber
integer
blockTimeStamp
integer
contractResult
string[]
receipt
object
log
object[]