in web3.js , to define a new contract

new web3.eth.Contract(jsonInterface[, address][, options])

so what is jsonInterface and where can i find it?
Thank you for reading :)

1 Answer 1


It's the ABI(Application Binary Interface). You can compile your source code from remix. On the compilation screen, you'll see a button to get the ABI. Click it to copy the ABI. That's what you need.

enter image description here


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.