1

I am writing a script in web3js to interact with a smart contract that is on the mainnet. This is not a smart contract I control.

I want to test / develop using a testnet. So how can I check my script runs correctly without directly interacting with it on mainnet? Or do I have to rely on that smart contract being deployed on one of the testnets?

2

You will have to rely on it being deployed on the testnet you're using. You can deploy the contract yourself if you want to be sure it's there.

  • Is there a way to search contracts on the test net? And have had a try at creating my own from the source of the contract on eitherscan. Is it just as simple as taking the bytecode and interface json? As i keep getting failed txns – Horse Jan 24 '18 at 19:59

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.