Skip to content

Environments

The Synthetix API currently provides a mainnet environment for production trading.

Mainnet

Live trading with real assets on Ethereum Mainnet.

Endpoints

TypeURL
REST APIhttps://papi.synthetix.io/v1/trade (authenticated)
REST Infohttps://papi.synthetix.io/v1/info (public)
WebSocket Tradewss://papi.synthetix.io/v1/ws/trade (authenticated)
WebSocket Infowss://papi.synthetix.io/v1/ws/info (public)
WebSocket Subscriptionswss://papi.synthetix.io/v1/ws/subscriptions (authenticated)

Blockchain

PropertyValue
NetworkEthereum Mainnet
Chain ID1

EIP-712 Domain

const domain = {
  name: "Synthetix",
  version: "1",
  chainId: 1,
  verifyingContract: "0x0000000000000000000000000000000000000000"
};

Configuration Example

const config = {
  // REST
  tradeUrl: 'https://papi.synthetix.io/v1/trade',
  infoUrl: 'https://papi.synthetix.io/v1/info',
 
  // WebSocket
  wsTradeUrl: 'wss://papi.synthetix.io/v1/ws/trade',
  wsInfoUrl: 'wss://papi.synthetix.io/v1/ws/info',
  wsSubscriptionsUrl: 'wss://papi.synthetix.io/v1/ws/subscriptions',
 
  // EIP-712
  domain: {
    name: "Synthetix",
    version: "1",
    chainId: 1,
    verifyingContract: "0x0000000000000000000000000000000000000000"
  }
};

Testnet

Testnet environment is currently in development.

Next Steps