Eth_getBlockTransactionCountByNumber

Get Transaction Count by Block Number

post

Returns the number of transactions contained in the block with the given block number.

Authorizations
api-keystringRequired
Body
jsonrpcstringRequired

JSON-RPC version

Example: 2.0
methodstringRequired

JSON-RPC method name

Example: eth_getBlockTransactionCountByNumber
paramsstring[] · min: 1 · max: 1Required

Array containing a single parameter:

  • Block number as a hex string (e.g. "0x10d4f" for block 69007) or
  • predefined block tags such as "latest", "earliest", or "pending"
Example: 0x10d4f
idintegerRequired

Request ID

Example: 1
Responses
chevron-right
200

Number of transactions in the block

application/json
jsonrpcstringOptional

JSON-RPC version

Example: 2.0
idintegerOptional

Same ID as in the request

Example: 1
resultstringOptional

Number of transactions in the block, returned as a hex string

Example: 0x8
post
/
200

Number of transactions in the block

Last updated