@quirks/core
Version:
2 lines (1 loc) • 401 B
JavaScript
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index8.cjs");function c(s,r=[]){var n,i;let e;typeof s=="string"?e=r.find(a=>a.chain_name===s):e=s,t.assertIsDefined(e),t.assertIsDefined((n=e.apis)==null?void 0:n.rpc),t.assertIsDefined((i=e.apis)==null?void 0:i.rest);const o=e.apis.rpc[0],p=e.apis.rest[0];return{rpc:o,rest:p}}exports.getEndpoint=c;