Bitcoin Forum
July 03, 2024, 11:19:57 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to see the balance of a Smart Contract!!  (Read 120 times)
abner712 (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
April 04, 2019, 08:08:29 AM
 #1

I recently saw someone asking how to see the balance of the smart contract, so I’ll use IOE Dapp as an example to share.

If you have an engineer background, it is recommended to use web3.js in the webpage and install MetaMask to connect to the blockchain and use the program to interact with the blockchain directly. If not, the easiest way is to paste the project's contract address directly into the project contract page via etherscan.io <https://etherscan.io/>.
https://i.imgur.com/46SPz2K.png

Take IOE Dapp as an example. The IOE official website already provides a smart contract source code, which links you to the contract page.
https://i.imgur.com/nPSVs9n.png

But if the item you are looking for is not available, you can enter your MetaMask wallet address and then look for the contract address you want through Token. However, you have to have made a deal with the contract address to do so.
https://i.imgur.com/7jvuiJx.png
https://i.imgur.com/avMfB2v.png

After successfully reaching the contract address page, you can see the your current balance (Ethereum display) on the contract page. If you want to see the balance displayed in the IOE coin currency, just select the contract address again at the Token, the coin currency will be displayed in IOE coins instead.
https://i.imgur.com/J1XdmLP.png
https://i.imgur.com/FIKa9X6.png

If there is any problem with the operation, please leave a message to me below.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!