New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@knine-sdk/helpers

Package Overview
Dependencies
Maintainers
3
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@knine-sdk/helpers

Helpers for Knine projects. Part of Knine JS SDK

latest
npmnpm
Version
1.1.4
Version published
Weekly downloads
34
-17.07%
Maintainers
3
Weekly downloads
 
Created
Source

Helpers

Helpers for Knine projects. Part of Knine JS SDK

  • Install
  • Etherscan
  • Open window

Install

yarn add @knine-sdk/helpers

Etherscan

A set of functions for generating links to etherscan

import { getEtherscanTxLink } from '@knine-sdk/helpers';
import { CHAINS } from '@knine-sdk/constants';

const link = getEtherscanTxLink(
  CHAINS.Mainnet,
  '0x0000000000000000000000000000000000000000000000000000000000000000',
);
console.log(link); // https://etherscan.io/tx/0x0000000000000000000000000000000000000000000000000000000000000000
import { getEtherscanTokenLink } from '@knine-sdk/helpers';
import { CHAINS } from '@knine-sdk/constants';

const link = getEtherscanTokenLink(
  CHAINS.Mainnet,
  '0x0000000000000000000000000000000000000000',
);
console.log(link); // https://etherscan.io/address/0x0000000000000000000000000000000000000000
import { getEtherscanAddressLink } from '@knine-sdk/helpers';
import { CHAINS } from '@knine-sdk/constants';

const link = getEtherscanAddressLink(
  CHAINS.Mainnet,
  '0x0000000000000000000000000000000000000000',
);
console.log(link); // https://etherscan.io/address/0x0000000000000000000000000000000000000000

Open window

import { openWindow } from '@knine-sdk/helpers';

openWindow('https://knine.io');

Keywords

knine

FAQs

Package last updated on 09 Sep 2024

Related posts