Skip to main content

klay_getBlockTransactionCountByNumber RPC Method

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

Updated on
Aug 7, 2024

klay_getBlockTransactionCountByNumber RPC Method

Parameters

BlockNumberOrTag
string
REQUIRED
The block number in integer or block tag(earliest and latest)

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": "klay_getBlockTransactionCountByNumber",
6
"id": 1,
7
"jsonrpc": "2.0",
8
"params": [
9
"0x8E42A"
10
]
11
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free