Skip to main content

kaia_getBlockTransactionCountByHash RPC Method

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

Updated on
Aug 7, 2024

kaia_getBlockTransactionCountByHash RPC Method

Parameters

blockHash
string
REQUIRED
The Hash of a block

Returns

result
integer
The number of transactions in this block
Request
1
curl https://docs-demo.kaia-kairos.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{
5
"method": "kaia_getBlockTransactionCountByHash",
6
"id": 1,
7
"jsonrpc": "2.0",
8
"params": [
9
"0x03c0dd2eb142579892702b02fdd10e104ef3cb9c4ee52907c0f916196c91cbbe"
10
]
11
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free