1

I wrote a script that is able to read events from one contract address and then paste it into a .csv. Now I would like to extend that script listening watching/reading the same event of several contracts but which are just executing activities from the "main" contract" via calls. These contracts are also created by the "main contract".

Right now I am using:

var instance = web3.eth.contract
var mycontract = instance.at

1 Answer 1

0

I think you're looking for something like this, but instead of using your own contract, you'll need to import the contract from the ethereum blockchain. Interaction between contracts

You can also call the methods from another smart contract, this thread has a very useful answer, and i think is what you're looking for: Calling function from deployed contract

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.