tRPC System IP Detection API
tRPC Endpoints
tRPC System IP Detection API
Manual country detection for the request IP
POST
tRPC System IP Detection API
The manual IP detection procedure is available on the tRPC base endpoint:
- Base endpoint:
POST /v1/trpc - Procedure:
system.ipDetection - Auth: public
- Rate tier:
Tier2
Response Notes
system.ipDetection performs an async country lookup for the request IP using
country.is.
countryCode: manually detected ISO-2 country coderequestCountryCode: Cloudflare-derived request country code from the incoming requestprovider: alwayscountry.isipDebug: raw IP-related request headers plus the derived client IP, country code, and region code used by the backendstatus:detectedmissing_iplookup_failedinvalid_response
ipDebug is returned specifically for support and debugging so callers can compare
the raw forwarded headers against the derived values the backend used.
Intended Usage
This procedure is designed to provide an additive country signal for restriction-aware routes.- Call
system.ipDetection - Read
countryCode - Send it back to routes such as
assets.searchForTokensasmanualCountryCode