Contracts

Get information about deployed Vertex contracts.

Rate limits

  • 2400 requests/min or 60 requests/sec per IP address. (weight = 1)

See more details in API Rate limits

Request

Connect

WEBSOCKET [GATEWAY_WEBSOCKET_ENDPOINT]

Message

{
  "type": "contracts"
}

Response

{
  "status": "success",
  "data": {
    "chain_id": "1337",
    "endpoint_addr": "0x0000000000000000000000000000000000000000",
    "book_addrs": ["0x0000000000000000000000000000000000000000", "0x0000000000000000000000000000000000000000"]
  },
  "request_type": "query_contracts"
}

Note:

  • endpoint_addr is the address of the Vertex endpoint contracts. Deposits are sent to the endpoint address; this to used sign every request except PlaceOrder.

  • book_addrs contain the address of each productโ€™s orderbook on Vertex. book_addr[i] is the address of the orderbook for product id i. The quote product (i == 0) does not have have an orderbook, so book_addr[0] is the null address; this is used to sign PlaceOrder requests for a provided product_id.

Last updated