I created the server based on golang. This server can load smart contract that is deployed using its address. It works on my local machine, but it does not work on EC2 instance. So I decided to develop it based on nodejs. But I can't find how it can load same smart contract in nodejs. Please help me. Thanks.
1 Answer
Get the contract object via:
const contract = await new web3.eth.Contract(JSON.parse(interface), smartContractAddress);
-
thanks for replying. I wonder what the interface is. is It json data based on abi file?– Sheng YuCommented Aug 19, 2019 at 11:52
-