Public asset search procedure with geo-restriction context
POST /v1/trpcassets.searchForTokensTier2assets.searchForTokens returns additive restriction metadata alongside the search
results:
manualCountryCode
system.ipDetectionrestrictedAssetsMap: geoblocking result by assetIdrestrictionContext.countryCode: normalized country code used for restriction
evaluationrestrictionContext.regionCode: normalized region code used for restriction
evaluationrestrictionContext.manualCountryCode: normalized manual country code used for
additive restriction checksrestrictionContext.cloudflare: normalized Cloudflare geo metadata used to derive
the country and region contextrestrictionContext.ipDebug: raw IP-related request headers plus the derived
client IP, country code, and region code used by the backendrestrictionContext.ipDebug
is returned specifically for support and debugging so callers can compare the raw
forwarded headers against the derived values the backend used. If manualCountryCode
is provided, the backend evaluates both countries and keeps the stricter restriction
result.
restrictionContext.cloudflare includes:
citycontinentcountryCodelatitudelongitudemetroCodepostalCoderegionregionCodetimezonerestrictionContext.ipDebug includes:
rawHeaders.cf-connecting-iprawHeaders.x-forwarded-forrawHeaders.x-real-iprawHeaders.cf-ipcountryrawHeaders.cf-region-coderawHeaders.cf-ipcityrawHeaders.cf-ipcontinentrawHeaders.cf-iplatituderawHeaders.cf-iplongituderawHeaders.cf-regionrawHeaders.cf-metro-coderawHeaders.cf-postal-coderawHeaders.cf-timezonederivedClientIpderivedCountryCodederivedRegionCode