Skip to main content
POST
eth_getBlockTransactionCountByNumber
Arc API method that returns the number of transactions in a block specified by block number.
Get your 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

  • blockNumber — the block number (hex) or tag (latest, earliest, pending)

Response

  • result — the number of transactions in the block encoded as hexadecimal

eth_getBlockTransactionCountByNumber code examples

Body

application/json
id
integer
default:1
jsonrpc
string
default:2.0
method
string
default:eth_getBlockTransactionCountByNumber
params
array

Response

200 - application/json

Returns the result of eth_getBlockTransactionCountByNumber.

jsonrpc
string
id
integer
result
string
Last modified on August 3, 2026