HomeGuidesAPI ReferenceChangelog
GuidesAPI ReferenceCommunityDiscordBlogFAQBug BountyAnnouncementsChange Log
API Reference

getBlockTransactionCount

Retrieves the count of transactions within a block.

Usage

tronWeb.trx.getBlockTransactionCount()

Parameters

ParameterDescriptionData Type
Block HeightThe height of the block you wish to obtain transaction count data for.Integer/string

Returns
Object

Example

tronWeb.trx.getBlockTransactionCount(16012520).then(console.log);
>35
tronWeb.trx.getBlockTransactionCount("0000000000f454e84edbee2365fbf1bf34bc98283ded06e68311bb6e5bea3cf6").then(console.log);
>35