2

Mist is an interesting wallet. I want to know all messages that Mist sends to geth, and receives from geth. Because to sniff the messages between Mist and geth is too inconvenient, my idea is to modify the source code of Mist, and then compiles/runs it.

How can I modify the source code of Mist to dump all messages communicated with geth?

Is it possible to give a parameter to enable Mist to dump all messages communicated with geth?

1

If you don't mind working on a testnet, there's actually a very easy way to do this!

Testrpc will happily print every RPC call it receives on the terminal. By setting mist to use testrpc you can see not only every RPC call, but even details of gas usage.

  • Thanks to Matthew's answer. In fact, my goal is to use Mist for a specific private-net. – Chan Mo-Che Nov 22 '16 at 10:04
  • I have tested testrpc. The testrpc shows every jsonrpc's method, but not show params. How to show method as well as params? – Chan Mo-Che Nov 23 '16 at 7:50
  • I don't think testrpc has an option to show params per se. However, it might be easier to modify the code to do so--this appears to be the section. – Matthew Schmidt Nov 23 '16 at 13:53

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.