gettransactioncountbyblocknum - Tron
gettransactioncountbyblocknum. Returns the number of transactions included in a specific block.
gettransactioncountbyblocknum - tron [Value: 20CU]
Returns the number of transactions included in a specific block.
Use cases
- Quickly check block activity level without downloading the full block
Constraints
- Returns 0 if the block number doesn't exist yet or has no transactions
- Also available under /walletsolidity/ for confirmed (solidified) data instead of the latest state
Unlock Access to 100+ chains
Boost your app's speed and reliability with dRPC - get your access API key
Language
Request
Examples
curl --request POST \
--url https://lb.drpc.live/tron/{API-KEY}/wallet/gettransactioncountbyblocknum \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{"num": 1}'Response
200
{
"count": 42
}Request params
idinteger
jsonrpcstring
methodstring
object
numinteger
[Required for GET] The block number to query
int64_as_stringboolean
GET only; when true, returns count as a JSON string
Response
200
Returns the number of transactions included in a specific block.Response params
object
countinteger
Number of transactions included in the specified block