Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What is the structure of the ERC20 token data set

Shulou Source: shulou.com Published: 2022-06-01 08:01:32 11月14日 Update

This article mainly introduces "what is the structure of ERC20 token data set". In daily operation, I believe that many people have doubts about the structure of ERC20 token data set. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the question of "what is the structure of ERC20 token data set?" Next, please follow the editor to study!

The Erc20Tokens dataset contains the description data lists and icons of more than 1000 mainstream Ethernet Square ERC20 tokens, which can be used in the development of block chain applications such as wallets, and support the use of Java, Python, Php, NodeJs, C# and other development languages to query the data related to mainstream ERC20 tokens.

1. Overview of dataset

The following is an icon representation of some tokens in the ERC20 token dataset:

The current version of the Erc20Tokens dataset is 1.0.0. For a list of main files, please see: http://sc.hubwiz.com/codebag/erc20-tokens-dataset/

2. Description of dataset structure

The master file of the dataset is erc20-tokens.json, where each ERC20 token contains the following description information:

Name: token name, for example: Dai

Symbol: token symbol, for example: DAI

Address: token deployment address, for example: 0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359

For example, the data of Dai and Peerguess tokens in the erc20-tokens.json file:

[{"name": "Dai"symbol": "dai", "address": "0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359",}. {"name": "Peerguess"symbol": "guess", "address": "0xbdcfbf5c4d91abc0bc9709c7286d00063c0e6f22",}.]

The icon of the ERC20 token is saved in the icons directory, and the file name is the symbol of the token. For example:

Erc20-token-dataset |-icons |-dai.png # Dai token icon |-guess.png # Peerguess token icon |-.3. Use the dataset in the program

You can read datasets using common development languages such as Java, Python, PHP, C #, JavaScript, and so on.

The following code uses Php to display the contract deployment address for all ERC20 tokens in the dataset:

Tags: Tokens data icons addresses files learning code contracts facets development mainstream more lists symbols languages caches help utility and then information Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple MariaDB OPPO Reno Microsoft Shulou Tech Info