Eth_getBlockTransactionCountByHash

Get Transaction Count by Block Hash

post

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

Authorizations
api-keystringRequired
Body
jsonrpcstringRequired

JSON-RPC version

Example: 2.0
methodstringRequired

JSON-RPC method name

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

Array containing a single parameter:

  • Block hash as a hex string (32 bytes with 0x prefix)
Example: 0x9b559a3d7ee67a0a8bb96ec93c93a0db3f9c66a355a3eb9f3f519c0f26a27c79
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 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