Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
iotex-token-metadata
Advanced tools
This repo is a collection of the metadata of tokens (XRC20, XRC721, etc...) deployed to IoTeX blockchain. Developers can use this repo to list these tokens in their projects.
Metadata of a token consists of the following JSON object:
{
"io1hp6y4eqr90j7tmul4w2wa8pm7wx462hq0mg4tw": {
"name": "Vitality",
"description": "Vitality (VITA) is a decentralized token for the IoTeX community.",
"logo": "io1hp6y4eqr90j7tmul4w2wa8pm7wx462hq0mg4tw.png",
"type": "xrc20",
"symbol": "VITA",
"decimals": 18
}
where:
Field | Required | Values | default | Notes |
---|---|---|---|---|
name | ✓ | string | Token Name | |
description | ✓ | string | Token Description | |
logo | ✓ | file name | logo image file name with extension | |
type | ✓ | xrc20 xrc721 | Type of token | |
symbol | ✓ | string | The symbol of the token | |
decimals | integer | 18 | The number of decimals |
IoTeX Explorer (https://iotexscan.io/) and ioPay wallets (http://iopay.iotex.io/) will include this metadata in their apps. Any IoTeX ecosystem app can include this package in their code (see the Usage section below).
Please notice that maintaining this list is not our highest priority. We do not guarantee the inclusion of your project metadata on any urgent timeline, because maintaining this list is a demanding and security-delicate task. We may also decide not to include the submission at all, e.g. if there are no proofs for a legit project behind the token, if we suspect the risk of pump&dump activity, airdrop-based phishing, or any cryptocurrency counterfeit scam. Plese see the Guidelines for tokens section below.
You can follow the steps below to submit your token metadata for review:
images/
foldertoken-metadata.json
We will only take into consideration projects that show clear signs of activity: either traffic on the network, activity on GitHub, or community buzz.
Install this package from npm with npm install iotex-token-metadata -s
and use it in your code like in the example below:
metadatasMap = require("iotex-token-metadata");
let address = "io1hp6y4eqr90j7tmul4w2wa8pm7wx462hq0mg4tw";
console.log("Metadata for token address: ", address);
let metadata = getXrc20TokenMetadata(address);
console.log("Token Name:", metadata.name);
console.log("Token Description:", metadata.description);
console.log("Token logo:", metadata.logo);
console.log("Token type:", metadata.type);
console.log("Token symbol:", metadata.symbol)
if (metadata.type=="xrc20") {
console.log("Token Decimals:", metadata.decimals);
}
function getXrc20TokenMetadata(address) {
const metadata = metadatasMap[address];
return metadata;
}
Intended for the repository maintainer only (not required for token submission):
$ npm login
// update package.json version
$ npm publish .
npm ci
npm test
Please make sure the unit test is passed before submitting a PR.
FAQs
a collection of the metadata of all tokens on IoTeX blockchain.
The npm package iotex-token-metadata receives a total of 1 weekly downloads. As such, iotex-token-metadata popularity was classified as not popular.
We found that iotex-token-metadata demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.