2.0.20 • Published 12 months ago

@thetalabs/tnt20-contract-metadata v2.0.20

Weekly downloads
-
License
ISC
Repository
-
Last release
12 months 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

1 year ago

1.0.6

1 year ago

2.0.15

12 months ago

2.0.3

12 months ago

2.0.16

12 months ago

2.0.13

12 months ago

2.0.5

12 months ago

2.0.14

12 months ago

2.0.4

12 months ago

2.0.11

12 months ago

2.0.7

12 months ago

2.0.12

12 months ago

2.0.6

12 months ago

2.0.9

12 months ago

2.0.10

12 months ago

2.0.8

12 months ago

2.0.19

12 months ago

2.0.17

12 months ago

2.0.18

12 months ago

2.0.20

12 months ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago