Skip to main content
6 events
when toggle format what by license comment
Jan 24, 2017 at 10:50 vote accept jeff
Jan 24, 2017 at 8:10 comment added nergall Ah in that case, sure. You can simply generate the data using the contract.foo.getData() call and then pass that data along with the other args to the library you're using (with 0 value).
Jan 23, 2017 at 20:38 comment added jeff I just want to use another transaction creation (and signing) library to make a function call, that's why I want to learn if they have the same structure.
Jan 23, 2017 at 12:06 comment added nergall It depends on what you're trying to achieve - I don't see the value in using valueTx without passing on a value, since that would be equivalent to sending 0 wei to an address (unless that's what you're trying to do for some reason). In most cases, if you want to pass 0 value, it means you want to execute a function, and thus you will use functionTx.
Jan 23, 2017 at 9:58 comment added jeff Great! getData looks like what I'm looking for. So I assume I can send a 0-value valueTx (instead of a functionTx) just by adding data: contract.foo.getData().
Jan 23, 2017 at 9:26 history answered nergall CC BY-SA 3.0