Environments
Use mainnet for production trading and devnet1 for integration testing. Keep each environment's endpoints, signing values, accounts and signer authorisations together; do not copy devnet chain IDs or contract addresses into a production signer.
Mainnet
Chain ID (verifyingChainId)
1729
REST market and account data
https://api.reya.xyz/v2
REST Order Entry (execution)
https://api.reya.xyz/v2
WebSocket Info
wss://ws.reya.xyz/
WebSocket Order Entry
wss://ws-exec.reya.xyz
OrdersGateway (EIP-712 verifyingContract)
0xfc8c96be87da63cecddbf54abfa7b13ee8044739
Exchange id (exchangeId)
1
Signer management
For the Python SDK, replace the devnet entries in .env with:
CHAIN_ID=1729
REYA_API_URL="https://api.reya.xyz/v2"
REYA_WS_URL="wss://ws.reya.xyz/"
REYA_WS_EXEC_URL="wss://ws-exec.reya.xyz"
REYA_ORDERS_GATEWAY="0xfc8c96be87da63cecddbf54abfa7b13ee8044739"Also configure your funded mainnet account IDs and authorise your signer on mainnet. Authorising a signer through the API Keys page grants trading access across all accounts owned by that wallet; devnet authorisations do not carry over. Coordinate production source-IP access with Reya if you use WebSocket Order Entry, and confirm your MM rate limits before starting. Fetch production market definitions and reconcile account state before submitting orders.
devnet1 (testnet)
Chain ID
89346162
REST market and account data
https://api-devnet.reya-cronos.network/v2
REST Order Entry (execution)
https://api-devnet.reya-cronos.network/v2
WebSocket Info
wss://websocket-devnet.reya-cronos.network/
WebSocket Order Entry
wss://ws-exec-devnet.reya-cronos.network
OrdersGateway (EIP-712 verifyingContract)
0x7Ec89E555c771D2B5939aBE5C4E4291852633D4D
Exchange id (exchangeId)
1
Signer management
How the values are used
Signing. Your EIP-712 signatures use the selected environment's
verifyingChainId(1729on mainnet;89346162on devnet1) and matchingverifyingContractabove. Remember the chain id is a message field, not a domain field.REST. Market/account reads and order-entry requests share the same public base URL. Submit signed order-entry requests to
POST /v2/createOrder,POST /v2/modifyOrder,POST /v2/cancelOrder,POST /v2/cancelAll, orPOST /v2/cancelAllAfteronapi.reya.xyzfor mainnet orapi-devnet.reya-cronos.networkfor devnet1. There is no separate public REST execution hostname. See the REST API Reference.WebSocket Info (depth, order changes, executions): the WebSocket Info API Reference.
WebSocket Order Entry (create / cancel / cancel-all over a persistent connection): the WebSocket Order Entry API Reference.
Exchange id. Sign
exchangeId = 1into your orders on mainnet and devnet1.Signer management. Connect the account's owner wallet to the API Keys page to add or remove authorised signer wallets. The page manages signer permissions; it does not issue bearer-token API credentials.
Last updated