The Rust API-key client defaults to Polyester devnet:
| Setting | Default |
|---|---|
| API URL | https://api-devnet.polyester.ai |
| WebSocket URL | wss://api-devnet.polyester.ai |
Set Config.api_url / Config.ws_url to override these endpoints. Scripts using Client::from_env() may set POLYESTER_API_URL and POLYESTER_WS_URL.
On-chain Funding helpers expose the Rust constant POLYESTER_TESTNET_ENVIRONMENT for the current
non-production contract addresses, RPC, and account-abstraction endpoints. The constant retains TESTNET in its public name; the HTTP and WebSocket hosts above are explicitly devnet. See Chain helpers and Funds & Transfers.
Do not hard-code production URLs until your account team confirms the production API host.
Related
Related Topics
Architecture How the API-key SDK layers ConnectRPC, realtime, catalogs, and services. Authentication model Ed25519 API-key request signing for ConnectRPC and private realtime channels. Catalog & precision Spot/Zipper catalogs, decimal strings, and scaled-integer inputs. Requests & idempotency Rust call conventions, cancellation, and idempotency keys for orders and triggers. Limitations & non-features What API-key SDKs intentionally omit, and where to go instead.