Endpoints
/infos

Global Infos

The /infos endpoint lets you identify the chains on which Hypersonic is active and the addresses of deployed contracts with a simple ping.

https://api.hypersonic.exchange/v1/infos

Request type: GET

Parameters

  • No parameters required.

Responses

  • 200 Successful request.
  • 5xx Service unavailable.
{
  "success": true,
  "chains": {
    "optimism": 10,
    "sonic": 146,
  },
  "contracts": {
    "optimism": {
      "router": "0xf9d5DCFB8490F67F1f7CFd148846D666d4ff6F25",
      "executor": "0x918B4dF97Fd0F84b388AdBD44eb8273b4EADCB7e",
    },
    "sonic": {
      "router": "0x5045E3E6F8a07690390dE1240C5Bb8ab2184500a",
      "executor": "0x7ae355d6CBF09577b3F295c1e313178F1e428F83",
    },
  },
  "timestamp": "2000-01-01T00:00:00.000Z"
}

Response Fields

  • success: Boolean indicating if the request was successful.
  • chains: Object containing the names of available chains & their ids.
  • contracts: Object containing the names of available chains & the corresponding router.
  • timestamp: UTC timestamp of the filled infos request.

Try it yourself

To ping the API using curl, you can use the following command:

curl https://api.hypersonic.exchange/v1/infos

This will send a GET request to the infos endpoint and return the response.