This strikes me as a very stupid question, but I have googled and cannot find an easy answer. I have identified a contract that I want to interact with- I know the function selector and the variables I want to pass- ie everything that I need to know for the transaction data. But there is no front-end layer on this contract so I can't use metamask or similar.

Wat do?


In Remix:

  • Create the ABI with the skeleton of the contract, for instance in Remix.

Then in NodejJs:

  • Get the mnemonic or the private key that you want to use to interact with Ethereum.
  • Create a Web3 instance with a HDWalletProvider to connect to Infura.io.
  • Create a Web3 contract instance with the ABI and the deployed address.
  • Interact with this contract instance in Javascript.
| improve this answer | |
  • I will check this out as well! Thank you – Andrew Stanger Oct 29 '19 at 4:48

You may use "Write Contract" feature of Etherscan.io: https://etherscan.io/address/0xdb25f211ab05b1c97d595516f45794528a807ad8#writeContract, but your contract has to have verified source code on Etherscan.io and you need to use Web3 enabled browser such as Metamask.

| improve this answer | |
  • This is exactly what I was looking for :) Thanks! – Andrew Stanger Oct 29 '19 at 4:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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