Skip to main content
GET
/
api
/
v1
/
customer
/
{chain}
/
blocks
/
transaction-count
Get Block Transaction Count
curl --request GET \
  --url https://api-gateway.sonarx.com/api/v1/customer/{chain}/blocks/transaction-count \
  --header 'apikey: <api-key>'
{
  "block_number": 81901165,
  "transaction_count": 176
}

Documentation Index

Fetch the complete documentation index at: https://docs.sonarx.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

apikey
string
header
required

API key for authentication. Contact SonarX to obtain your API key.

Path Parameters

chain
enum<string>
required

The blockchain network to query

Available options:
polygon
Example:

"polygon"

Query Parameters

block_number
integer
required

Block number to query (>= 0)

Required range: x >= 0
Example:

81901165

Response

Transaction count

block_number
integer

The queried block number

transaction_count
integer

Number of transactions in the block