Skip to main content
Post Locked by sideshowbarker
Notice added Content dispute by sideshowbarker
deleted 105 characters in body
Source Link
sideshowbarker
  • 89.2k
  • 30
  • 219
  • 216

You can do it like this:

const contract = new web3.eth.Contract(ABI, address) const returnValue = await contract.methods.someFunc(someArg).call() 

For more information about how to interact with smart contracts using web3.js, read this article

You can do it like this:

const contract = new web3.eth.Contract(ABI, address) const returnValue = await contract.methods.someFunc(someArg).call() 

For more information about how to interact with smart contracts using web3.js, read this article

You can do it like this:

const contract = new web3.eth.Contract(ABI, address) const returnValue = await contract.methods.someFunc(someArg).call() 
Source Link

You can do it like this:

const contract = new web3.eth.Contract(ABI, address) const returnValue = await contract.methods.someFunc(someArg).call() 

For more information about how to interact with smart contracts using web3.js, read this article