@thorswap-lib/swapkit-explorers
Install:
yarn add @thorswap-lib/swapkit-explorers
API:
import { Chain } from '@sequelfinance/types';
import { getExplorerTxUrl, getExplorerAddressUrl } from '@thorswap-lib/swapkit-explorers';
// https://etherscan.io/tx/0x1234
const txUrl = getExplorerTxUrl({ chain: Chain.ETH, txId: '0x1234' });
// https://blockstream.info/address/bc1qwerty
const addressURL = getExplorerAddressUrl({ chain: Chain.BTC, address: 'bc1qwerty' });