0

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?

2 Answers2

0

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.

Mikhail Vladimirov
  • 7,313
  • 1
  • 23
  • 38
0

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.