cURL
curl --request GET \ --url https://api-gateway.sonarx.com/api/v1/customer/{chain}/blocks/transaction-count \ --header 'apikey: <api-key>'
200
Example
{ "block_number": 81901165, "transaction_count": 176 }
Get the number of transactions in a block
API key for authentication. Contact SonarX to obtain your API key.
The blockchain network to query
polygon
"polygon"
Block number to query (>= 0)
x >= 0
81901165
Transaction count
The queried block number
Number of transactions in the block