Comment on page
starknet_getBlockTransactionCount
Get the number of transactions in a block given a block id
- 1.
BLOCK_PARAM
- Expected one ofblock_number
,block_hash
,latest
,pending
The number of transactions in the designated block
Request
curl https://starknet-mainnet.blastapi.io/<project-id>
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"starknet_getBlockTransactionCount","params": ["latest"],"id":1}'
Result
{
"jsonrpc": "2.0",
"result": 148,
"id": 1
}
Last modified 1yr ago