I'm analyzing interactions between accounts in Ethereum. I started by external transactions (sent from accounts), but wanted to extend the analysis to external ones (resulting from smart contract execution). For instances, if there's a transaction invoking a smart contract function paying several accounts (from an internal contract list), I'd like to extract those accounts. E.g., in this contract, I'd like to extract the accounts being paid in transaction invoking
Following this thread, I set up Parity in archive mode (--pruning=archive) and tried to use
traceReplayTransaction in different modes. However, I'm still not able to get the accounts from the output.
I've also tried ethereum-input-decoder, but it only provides me with accounts provided as as arguments to smart contract functions.
This paper suggests that I should extract CREATE, CALL, CALL-CODE, DELEGATE-CALL and SELFDESTRUCT EVM operations, but I'm not sure what's the easiest way to do that.
Any help will be highly appreciated!
Thank you for all the answers. To get the required information, I've set up parity in archive mode (
--pruning archive) and called
stateDiff mode on each transaction. This method should work on other clients as long as they implement the RPC call. An important note when running parity in
dev mode is that, in my case, it was not showing the last submitted transaction, so make sure that you submit a new transaction after the one you want to observe.