1.1.3 • Published 4 years ago

depay-react-token-image v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Quickstart

yarn add depay-react-token-image

or

npm install --save depay-react-token-image
import { TokenImage } from 'depay-react-token-image'

render() {
  return(
    <TokenImage
      blockchain={'ethereum'}
      address={'0xa0bEd124a09ac2Bd941b10349d8d224fe3c955eb'}
    />
  )
}

Functionalities

TokenImage

The TokenImage component tries to display a token image for a given blockchain and address by:

  1. Trying to fetch the image from https://github.com/trustwallet/assets

  2. Trying to fetch the image from DePay API

  3. Falling back to trying to fetch it from

Development

Get started

yarn install
yarn dev

Release

npm publish

Testing