Skip to main content

starknet_getBlockTransactionCount RPC Method

Get the number of transactions in a block given a block id.

Updated on
Mar 18, 2024

starknet_getBlockTransactionCount RPC Method

Parameters

block_id
string
REQUIRED
The hash of the requested block, the block number (height) of the requested block, or a block tag (latest or pending)

Returns

result
integer
The number of transactions in the designated block
Request
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free