POSTeth_getBlockTransactionCountByNumber

Tron Mainnethttps://tron-mainnet.nodit.io/

Returns the number of transactions in a block by block number.

Request Body
idintegerrequired
jsonrpcstringrequired
methodstringrequired
paramsoneOf[]required

It contains following parameter in order:

  1. block: The block number to look up, or a tag (latest, earliest). (required)
params[0]oneOf
oneOf

The hex-encoded block number.

string

The hex-encoded block number.

Responses

응답 본문이 없습니다.

X-API-KEY
RequestCU13
cURL
curl -X POST "https://tron-mainnet.nodit.io/" \
  -H "X-API-KEY: {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "eth_getBlockTransactionCountByNumber",
  "params": [
    "0x20ef11c"
  ]
}'
Response
Example · 200
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x23"
}