bido-sdk-helpers
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

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

Package Sidebar

Install

npm i bido-sdk-helpers

Weekly Downloads

4

Version

0.0.4

License

MIT

Unpacked Size

12.2 kB

Total Files

19

Last publish

Collaborators

  • wbh1328551759