Proxying
What a proxy in front of a Triton endpoint changes, and what it must do to work.
What a proxy changes
Anycast hostnames. Triton routes by where your connection enters its network.
DNS-routed hostnames (Solana devnet and testnet). Sui and Monad customer endpoints use Anycast. Triton routes by where the DNS lookup comes from.
Behind a proxy, both mean the proxy's location, not your user's. See Endpoints, regions, and routing.
DNS caching delays failover. On DNS-routed hostnames, Triton removes an unhealthy node or load balancer from DNS answers. A proxy that caches or pins the answer keeps sending traffic to it.
All users share one IP. Triton applies rate and connection limits and blocks per source IP. Every user behind your proxy shares one IP's limits.
Repeated 403 blocks cut off the IP. When one IP triggers
403blocks at a high rate, Triton rejects its new connections and drops its requests without a response.429responses don't count. Behind a proxy, that cuts off every user. See Earlier connection drops for repeat offenders.
From data-centre IP ranges (cloud, hosting and Cloudflare)
Can get HTTP 403 with Your IP or provider is blocked from this endpoint. See Triton RPC error codes.
From some server HTTP clients
Get the same 403 from any IP
Plain http://
Get the same 403
From Cloudflare Workers, with a CF-Worker header
Get the same 403
Instead of a proxy
Keep a token out of browser code. Use allowed origins with no token. See Auth and security.
Control the region. Use a city hostname with your token (shared Solana mainnet only), or ask support for a hostname that points at one city. Allowed origins don't work on city hostnames. See Pin a region.
Other goals. Tell support what the proxy is for.
If you still need a proxy
Token. Send your token on every request, in the URL path or the
x-tokenheader.Token in logs. Keep your token out of proxy logs and error responses.
Host. Send your endpoint's exact hostname from the customer dashboard as
Host.Host lookup. Triton uses
Hostto find your network, then looks up your token there.Unknown Host. If Triton doesn't know the
Host, it doesn't recognise your token. Your own domain isn't known by default.Origin. Only for requests without a token: pass
Originunchanged. Triton checks it against your allowed origins.HTTPS. Connect to Triton over HTTPS and validate its certificate. Triton's certificates are issued for
rpcpool.comhostnames.
JSON-RPC
Pass POST and the Content-Type header unchanged. Triton accepts application/json and application/json-rpc.
Other content types return 415
WebSocket
Pass Upgrade: websocket, Connection: upgrade and Sec-WebSocket-Version: 13
Without version 13, Triton returns 426
gRPC
Use HTTP/2 to Triton and pass Content-Type: application/grpc unchanged. Send the token in the x-token header.
Client IP. Triton doesn't take the client IP from request headers such as
X-Forwarded-FororX-Real-IP.Client IP header. To rate-limit by your users' IPs, ask support whether a client-IP header is available for your setup. Blocks still count against your proxy's IP.
Rate tier. Ask support to review your rate tier.
DNS. Resolve Triton's hostname again at each TTL. Don't pin the IP.
What's next
Contact support by clicking the chat icon in your customer dashboard Sales questions? Contact us AI agent? Read llms.txt Follow updates: Blog · X · YouTube · Telegram · GitHub
Last updated