跳到主要内容

eth_getBlockTransactionCountByNumber

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

  • must have required property 'Block Number or Tags'
curl --request POST \
--url https://evm.confluxrpc.com \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"params": [null],
"method": "eth_getBlockTransactionCountByNumber"
}'

Params

blocknumber required

Block Number or Tags
oneOf
type : string
Pattern : ^0x([1-9a-f][0-9a-f]{0,15}|0)$

Result

Schema
type : string
Pattern : ^0x([1-9a-f][0-9a-f]{0,63}|0)$