There are a few questions on creating transactions and signing them offline using ethereumjs-tx. What I'm interested in is how do we build the binary data field based on the desired functionality. E.g. what is the binary data equivalent of 'execute method1 with 'foo' and 7 as arguments'?
I was planning on creating a transaction to do what I want using web3 and just stealing the bytecode from that, but it seems hacky. Any suggestions would be much appreciated!