Skip to main content
Version: 0.0.5

eth_getBlockTransactionCountByHash

Returns the number of transactions in a block from a block matching the given block hash.

Parameters (by position)​

Block hash string


Result​

Transaction count null or string


Show Option 1 Not Found (null) null

Not Found (null) fields​

Transaction count null

Not Found (null)


Show Option 2 Transaction count string

Transaction count fields​

Transaction count string

Transaction count

Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


Errors​

Error code: 4444

  • code

    4444

  • message

    Pruned history unavailable

Examples​

eth_getBlockTransactionCountByHash example

Request​

{
"params": [
"0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238"
]
}

Response​

"0x8"