Skip to main content

GetBlockTransactionCountByHash

Blocks

Implements eth_getBlockTransactionCountByHash.

Params

(2)

1. shardId (required)

integer

The ID of the shard where the block was generated.

2. hash (required)

string

The hash of the block whose information is requested.

Result

(transactionNumber)
integer

The number of transactions contained within the block.

API credentials

Username

Token

Params

shardId

hash


Request

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