diff --git a/src/util/requestUtils.ts b/src/util/requestUtils.ts index b5f5761..3596c57 100644 --- a/src/util/requestUtils.ts +++ b/src/util/requestUtils.ts @@ -56,4 +56,14 @@ export function getBaseRESTInverseUrl(useLivenet?: boolean, restInverseOptions?: return baseUrlsInverse.livenet; } return baseUrlsInverse.testnet; -} \ No newline at end of file +} + +export function isPublicEndpoint = (endpoint: string): boolean => { + if (endpoint.startsWith('v2/public')) { + return true; + } + if (endpoint.startsWith('public/linear')) { + return true; + } + return false; +}