Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cryptometa

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cryptometa

> Public repository used by ViewBlock to display token information and compute score

  • 0.1.3
  • npm
  • Socket score

Version published
Weekly downloads
25
decreased by-3.85%
Maintainers
1
Weekly downloads
 
Created
Source

cryptometa

Public repository used by ViewBlock to display token information and compute score

How to use in your app

Thanks to our auto-updated CDN, you can add any chain and token icons in your app seamlessly using the following url:

https://meta.viewblock.io/{key}/logo

The key accepts different formats chainSymbol, chainName, chainSymbol.tokenHash, for example:

<img src="https://meta.viewblock.io/BTC/logo" />
<img src="https://meta.viewblock.io/zilliqa/logo" />
<img src="https://meta.viewblock.io/AR.usjm4PCxUd5mtaon7zc97-dt-3qf67yPyqgzLnLqk5A/logo" />

The CDN will automatically route to the right icon, SVG if existing or PNG fallback.

Another cool thing is our dark support. Let's say you have a dark theme, we have some icons specially made for this case. You simply need to add the ?t=dark query parameter:

<img src="https://meta.viewblock.io/AR.usjm4PCxUd5mtaon7zc97-dt-3qf67yPyqgzLnLqk5A/logo?t=dark" />

If the image has a dark alternative, that's what you will get otherwise it will fallback to the default one.

How to add/update your token

  • Fork the repo
  • Create a folder in the appropriate chain folder named after your contract address
  • Your image must be either SVG or PNG 256x256 (max 100kb) and named logo.<extension> (do not base64 encode your PNG in a SVG)
  • Add information of your project using the following spec:
ParamTypeRequiredPointsNotes
nameStringtrue
symbolStringtrue
webStringfalse5
decimalsNumberfalse
supplyNumberfalse
emailStringfalseEmail of the team
whitepaperStringfalse10Link to the WP
holdersBoolfalse10Only specify if more than 1000 holders without airdrops
publicTeamBoolfalse20Teams members with public profiles, non-anon
productBoolfalse30Usable product on mainnet with users giving token utility
links.researchStringfalse10Either binance research, TokenData or the like
links.githubStringfalse10Org or account with repos related to the project
links.linkedinStringfalse10
links.twitterStringfalse5
links.coinmarketcapStringfalse
links.coingeckoStringfalse
links.mediumStringfalse
links.blogStringfalse
links.telegramStringfalse
links.discordStringfalse
links.facebookStringfalse
links.redditStringfalse
links.youtubeStringfalse
links.instagramStringfalse
  • No need to calculate and specify the score yourself, as it will be automatically generated based on the provided properties
  • Create and submit a PR

Upon disagreements as to which property a token has/deserves, remember that we ultimately have the final say in what gets to show in our products.

FAQs

Package last updated on 19 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc