eth_getBlockTransactionCountByNumber

根据区块号获取区块内的交易数量。

参数

  1. QUANTITY|TAG - 区块号,或者 "earliest", "latest"。

返回值

  • QUANTITY - 区块内交易数量。

示例

请求

curl -X POST 'https://api.shasta.trongrid.io/jsonrpc' --data '{
	"jsonrpc": "2.0",
	"method": "eth_getBlockTransactionCountByNumber",
	"params": ["0xF96B0F"],
	"id": 1
}'

结果

{"jsonrpc":"2.0","id":1,"result":"0x23"}