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:
-
Trying to fetch the image from https://github.com/trustwallet/assets
-
Trying to fetch the image from DePay API
-
Falling back to trying to fetch it from
Development
Get started
yarn install
yarn dev
Release
npm publish