@thetalabs/wallet-metadata

1.0.57 • Public • Published

@thetalabs/wallet-metadata

A mapping of checksummed contract addresses to metadata, like names, and images of their logos.

All address keys follow the EIP 55 address checksum format.

Usage

You can install from npm with npm install @thetalabs/wallet-metadata and use it in your code like this:

import tokensByChainId from '@thetalabs/tnt20-contract-metadata';
import ethJSUtil from 'ethereumjs-util'
const { toChecksumAddress } = ethJSUtil

function getTokenMetadata (address) {
  const chainId = 'testnet';
  return tokensByChainId[chainId][toChecksumAddress(address)];
}

getTokenMetadata ("0x141eE1a64645C29b3D1881B2734d315f9f74A377")

Readme

Keywords

none

Package Sidebar

Install

npm i @thetalabs/wallet-metadata

Weekly Downloads

5

Version

1.0.57

License

ISC

Unpacked Size

26.3 kB

Total Files

19

Last publish

Collaborators

  • qinweigong
  • antoinervr
  • renesliver
  • averytt