Added isPublicEndpoint Function Export
This commit is contained in:
@@ -56,4 +56,14 @@ export function getBaseRESTInverseUrl(useLivenet?: boolean, restInverseOptions?:
|
||||
return baseUrlsInverse.livenet;
|
||||
}
|
||||
return baseUrlsInverse.testnet;
|
||||
}
|
||||
}
|
||||
|
||||
export function isPublicEndpoint = (endpoint: string): boolean => {
|
||||
if (endpoint.startsWith('v2/public')) {
|
||||
return true;
|
||||
}
|
||||
if (endpoint.startsWith('public/linear')) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user