K
K
krugliybublick2018-05-31 10:08:50
Cryptocurrency
krugliybublick, 2018-05-31 10:08:50

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

3 answer(s)
D
Dimonchik, 2018-06-03
@dimonchik2013

via Geth API

S
Semyon Novikov, 2018-08-31
@semennovikov123

web3.js, web3.py, go ethereum and others

S
salminads, 2018-11-22
@salminads

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 question

Ask a Question

731 491 924 answers to any question