The client does not target Testnet by default, so pass the Testnet preset on every client:
client, err := polyester.New(polyester.Config{
Environment: &polyester.TestnetEnvironment,
})polyester.TestnetEnvironment targets Polyester testnet:
| Setting | Value |
|---|---|
| API URL | https://api.testnet.polyester.com |
| WebSocket URL | wss://api.testnet.polyester.com |
| RPC URL | https://rpc.polyester.live |
| Chain ID | 888169 |
| Name | polyester-testnet |
The environment keeps API, WebSocket, RPC, and contract pins together. Config.APIURL / Config.WSURL remain transport overrides. For custom or VPC endpoints, build a complete
environment with polyester.CreateEnvironment or polyester.TestnetEnvironment.WithURLs.
Scripts using polyester.FromEnv() must set POLYESTER_ENV=testnet to select the preset. Optional POLYESTER_API_URL / POLYESTER_WS_URL override the transport URLs. polyester.EnvironmentFromName("testnet") resolves the same preset by name.
On-chain Funding helpers in the chain package take the same preset for contract addresses, RPC,
and account-abstraction endpoints. See Chain helpers and Funds & Transfers.
Do not hard-code production URLs until your account team confirms the production API host.