For the complete documentation index, see llms.txt. This page is also available as Markdown.

eth_getBlockTransactionCountByNumber

POST https://mainnet.valuechain.xyz

Returns the number of transactions in a block matching the given number or tag.

Parameters

Name
Type
Required
Description

block

quantity or tag

Yes

Hex block number, or earliest, latest, safe, finalized, or pending. See block tags.

Result

Count (quantity): Hex-encoded transaction count.

Example

Response

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

Code examples

cURL

JavaScript

Python

Last updated