Ethereum: Retrieving USD Value of Transferred ERC-20 Tokens via Etherscan API

Here are the standing on the Equity of the Translated Tokens ERC-20 Etscan API:

Related Stempress Producted Tokens ERC-20 Etherscan API

How to work over ERC-20, Translated with the API Etherscan API.

What is ERC-20?

ERC-20 (Ethereum Standard) is the standard token for the consumption of the decontrolized EAT (DApps) on the Ethereum blockchain. This is the most widely used standard tokens, and in the last years he has spoken of the echo. ERC-20 Tokens are used in the quality of Activ (Sov), which allows the policeman to state, to trigger and to invest them.

API ETHERCAN API

Etherscan-popular post-blocking blockchain, which is subjected to api’s renewal set to access to a data, consensus with Ethereum. API Etherscan introduces a child of information to the information of the ERC-20 tokens, their balance, the idyntification of the token, name, symbol and more.

Etherals of Dollars Etherscan API

Tokens API Etherscan, you can mow these shagies:

1.

  • Install Library Python Etherscan

    : You need to install the Python Etherscan Library for Hi. You can make it, starting pip install etherscan-appi.

3.

4.

5.

6.

Primer Code

Here is the primer of the code fragment in the python,

`Python

Import

Install Your Name Policeman, Password and URL API Endpoint

Username = "your_username"

Password = "Your_password"

Api_url = "

Autentification with API

Response = requests.post (api_url + "/auth", auth = (name of polish, password)))

#Bueling the token from the Out

Token_id = none

replace this stomach token erc-20

Installeded Pies available for the Acquisted Token Erc-20

Query = f "token = {token_id} & symbol = {Token_id}"

Ottuts Pressed Get Into The End-20 Token Erc-20

Response = requests.get (api_url + "/tokens", params = {"q": query})

Punk and Transfer the Answer

Data = Response.json ()

#Building the values ​​of dollars from the ottubas

USD_VALUE = Data ["Result"] [0] ["Sumt"] / 100000000

Print (F "Value USD {Token_id}: {USD_VALUE}")

The Best Projects

At the use of API Etherscan, Imm Cems in Vid:

  • Recognize that you change your name of the policeman and the password of your fact.

  • Using a non -Mutual method of chronic data, such as the interchanges or manager secrets.

*

Adjusts, you can effectively release the values ​​of the USD translated ERC-20 tokens API Etherscan. Happy Coding!


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *