cURL
curl --request GET \ --url https://api-gateway.sonarx.com/api/v1/customer/{chain}/blocks/latest \ --header 'apikey: <api-key>'
200
Example
{ "block_number": 81901165}
Get the latest block number for a chain
API key for authentication. Contact SonarX to obtain your API key.
The blockchain network to query
polygon
"polygon"
Latest block number
The latest block number on the chain