bido-sdk-helpers
v0.0.4
Published
Helpers for Lido Finance projects. Part of [Lido JS SDK](https://github.com/lidofinance/lido-js-sdk/#readme)
Downloads
3
Maintainers
Readme
Helpers
Helpers for Lido Finance projects. Part of Lido JS SDK
Install
yarn add bido-sdk-helpers
Etherscan
A set of functions for generating links to etherscan
getEtherscanTxLink
import { getEtherscanTxLink } from 'bido-sdk-helpers';
import { CHAINS } from 'bido-sdk-constants';
const link = getEtherscanTxLink(
CHAINS.Mainnet,
'0x0000000000000000000000000000000000000000000000000000000000000000',
);
console.log(link); // https://etherscan.io/tx/0x0000000000000000000000000000000000000000000000000000000000000000
getEtherscanTokenLink
import { getEtherscanTokenLink } from 'bido-sdk-helpers';
import { CHAINS } from 'bido-sdk-constants';
const link = getEtherscanTokenLink(
CHAINS.Mainnet,
'0x0000000000000000000000000000000000000000',
);
console.log(link); // https://etherscan.io/address/0x0000000000000000000000000000000000000000
getEtherscanAddressLink
import { getEtherscanAddressLink } from 'bido-sdk-helpers';
import { CHAINS } from 'bido-sdk-constants';
const link = getEtherscanAddressLink(
CHAINS.Mainnet,
'0x0000000000000000000000000000000000000000',
);
console.log(link); // https://etherscan.io/address/0x0000000000000000000000000000000000000000
Open window
import { openWindow } from 'bido-sdk-helpers';
openWindow('https://lido.fi');