2.0.20 • Published 2 years ago

@thetalabs/tnt20-contract-metadata v2.0.20

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

@thetalabs/tnt20-contract-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/tnt20-contract-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")
1.0.7

2 years ago

1.0.6

2 years ago

2.0.15

2 years ago

2.0.3

2 years ago

2.0.16

2 years ago

2.0.13

2 years ago

2.0.5

2 years ago

2.0.14

2 years ago

2.0.4

2 years ago

2.0.11

2 years ago

2.0.7

2 years ago

2.0.12

2 years ago

2.0.6

2 years ago

2.0.9

2 years ago

2.0.10

2 years ago

2.0.8

2 years ago

2.0.19

2 years ago

2.0.17

2 years ago

2.0.18

2 years ago

2.0.20

2 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago