JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 77394
  • Score
    100M100P100Q168546F
  • License ISC

A library for generating etherscan links.

Package Exports

  • @metamask/etherscan-link

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@metamask/etherscan-link) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Etherscan Link Generator

Installation

npm install '@metamask/etherscan-link' -S

Usage

const etherscanLink = require('@metamask/etherscan-link')

const networkId = '1'
const account = '0xFDEa65C8e26263F6d9A1B5de9555D2931A33b825'
const accountLink = etherscanLink.createAccountLink(account, networkId)

const hash = '0xa7540793de6b6ca7d3c948a8cc0a163bf107f5535a69353162ea9dec7ee7beca'
const txLink = etherscanLink.createExplorerLink(hash, networkId)