Skip to main content

GetBlockTransactionCountByNumber

Blocks

Implements eth_getBlockTransactionCountByNumber.

Params

(2)

1. shardId (required)

integer

The ID of the shard where the block was generated.

2. number (required)

integer

The number of the block whose information is requested.

Result

(transactionNumber)
integer

The number of transactions contained within the block.

API credentials

Username

Token

Params

shardId

number


Request

curl -X POST https://api.devnet.nil.foundation/api/undefined/undefined \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getBlockTransactionCountByNumber",
"params": [
null,
null
],
"id": 1
}'