v1

latestOpenAPI 3.0.02026-07-26541677.9 KB
Ethereum API

eth_getBlockTransactionCountByNumber

Returns the number of transactions in a block by block number

post/eth_getBlockTransactionCountByNumber

Request body

jsonrpcstring required

JSON-RPC version

methodstring required

The method to call

idinteger required

Request identifier

Response

Returns the number of transactions in the block

jsonrpcstring
idinteger
resultstring

The number of transactions in the block

Example response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x0"
}