@sequelfinance/swapkit-explorers
TypeScript icon, indicating that this package has built-in type declarations

0.0.1-development.3 • Public • Published

@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' });

Readme

Keywords

none

Package Sidebar

Install

npm i @sequelfinance/swapkit-explorers

Weekly Downloads

0

Version

0.0.1-development.3

License

MIT

Unpacked Size

78.7 kB

Total Files

10

Last publish

Collaborators

  • sequel-damian