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

Parameters

block_id
string
REQUIRED

The hash of the requested block, the block number (height) of the requested block, or a block tag (latest, pre_confirmed, or l1_accepted)

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