Skip to main content

Parameters

chainId
string
default:"69000"
required
Unique identifier for a blockchain network.
id
number
default:1
required
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"eth_getBlockTransactionCountByHash"
required
JSON-RPC method name.
params
object
required
Parameters for eth_getBlockTransactionCountByHash: [blockHash].Positional parameters for eth_getBlockTransactionCountByHash:
  • params[0]: 32 Bytes - hash of the block where this transaction was included. Null when pending.

Returns

result
string
Integer of the number of transactions in this block. Example: “0x1b”.