@tezos-x/octez.connect-dapp
Version:
Use this package on your dApp to instanciate a DAppClient object and communicate to wallets.
14 lines • 389 B
JavaScript
export class BlockExplorer {
rpcUrls;
constructor(rpcUrls) {
this.rpcUrls = rpcUrls;
}
async getLinkForNetwork(network) {
const link = this.rpcUrls[network.type];
if (!link) {
throw new Error(`Block explorer not configured for network "${network.type}"`);
}
return link;
}
}
//# sourceMappingURL=block-explorer.js.map