# Environments

Default devnet endpoints and how to point the client at another deployment.

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](https://testnet.polyester.com/docs/sdk/rust/reference/chain) and [Funds & Transfers](https://testnet.polyester.com/docs/developer-docs/funds-transfers/overview).

Do not hard-code production URLs until your account team confirms the production API host.

## Related

- [Chain helpers](https://testnet.polyester.com/docs/sdk/rust/reference/chain)
- [Client configuration](https://testnet.polyester.com/docs/sdk/rust/reference/client-configuration)
