Answer the question
In order to leave comments, you need to log in
How to work with a smart contract on the site?
Good day! I do not know where to dig. You need to create a smart contract, it's not difficult. But, how to use it on my site? For example, I need to display the balance (the number of user tokens on the site) where can I read about working with the site and the contract? I really need help
Answer the question
In order to leave comments, you need to log in
Here is a clear guide https://habr.com/post/348876/ for working through a metamask
The point is that the metamask adds to the Web3js page
Then you write the contract address, insert the abi of the contract.
You then call the methods of the smart contract itself on the page, with or without passing parameters.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question