POST
/
95e61622bf6a8af293978377718e3b77
/
walletsolidity
/
gettransactioncountbyblocknum
walletsolidity/gettransactioncountbyblocknum
curl --request POST \
  --url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/walletsolidity/gettransactioncountbyblocknum \
  --header 'Content-Type: application/json' \
  --data '{
  "num": 70000000
}'
{
  "count": 42,
  "blockNumber": 70000000
}
TRON API method that retrieves the transaction count within a solidified block by block number. This method queries confirmed and finalized blockchain state, providing reliable transaction count information that cannot be rolled back.
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 get transaction count for (integer)

Response

Returns transaction count information:
  • count — the number of transactions in the specified block
  • blockNumber — the block number queried

Use case

The walletsolidity/gettransactioncountbyblocknum method is used for:
  • Counting confirmed transactions in specific solidified blocks
  • Analyzing block activity and transaction volume from finalized data
  • Building blockchain statistics and analytics with reliable information
  • Implementing applications that require confirmed transaction count data

Body

application/json

Response

200 - application/json

Transaction count in the specified solidified block

The response is of type object.