Step 2 – interaction with the smart contract

Web3 also provides a JavaScript object, web3.eth.Contract, which represents your deployed contract. To find and interact with your newly deployed contract on the blockchain, this object needs to know the contract's address and its application binary interface (ABI):

 

var auctionContract = web3.eth.contract(“your contract's ABI”);
var auction = auctionContract.at(“contract address”);
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset