🚀 Investors Wanted! 📈
Join us in our journey to innovate blockchain technologies. Let's shape the future together.
To query the balance of BEP20 tokens, you need a valid Ethereum address. With this tutorial you can easily query the balance of the respective Ethereum address. We have written a detailed tutorial for this purpose. Read more.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import requests
import json
############################
# Replace with your Values #
############################
apikey = "YOURAPIKEY"
bscaddress = "BSCADDRESS"
contractaddress = "CONTRACTADDRESS";
url = "https://api.chaingateway.io/v2/bsc/balances/"+bscaddress+"/bep20/"+contractaddress
payload={}
headers = {
'Accept': 'application/json',
'Authorization': apikey
}
response = requests.request("GET", url, headers=headers, , data=payload)
print(response.text)
Upload the code above to your local or remote machine
Call the script by navigating to your favorite browser and entering the URL
Congratulations! You should now see a new generated address which you can use to send and receive ERC-20 Tokens.