Skip to main content
GET
/
api
/
v1
/
customer
/
{chain}
/
blocks
/
latest
Get Latest Block
curl --request GET \
  --url https://api-gateway.sonarx.com/api/v1/customer/{chain}/blocks/latest \
  --header 'apikey: <api-key>'
{
"block_number": 81901165
}

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"

Response

Latest block number

block_number
integer

The latest block number on the chain