steemit / steem-ruby

Steem-ruby is the official Ruby library for the Steem blockchain
MIT License
9 stars 15 forks source link

Computing Transaction ID in Transaction Builder #13

Closed inertia186 closed 5 years ago

inertia186 commented 5 years ago

As an application developer, I would like to know what a trx_id will be for a particular transaction I'm about to broadcast for the purpose of polling for this transaction later after it has been broadcasted, so that I can find it in case of timeout or other service interruption.

AC

inertia186 commented 5 years ago

https://github.com/steemit/steem-ruby/commit/c584f8c6823cbb5eb0b5f99f67c627be6b18d853 also contains trx_id computation:

https://github.com/steemit/steem-ruby/blob/c584f8c6823cbb5eb0b5f99f67c627be6b18d853/lib/steem/transaction_builder.rb#L239

inertia186 commented 5 years ago

Change in #15, specific line: https://github.com/steemit/steem-ruby/pull/15/files#diff-32ad2e86b72b0220bd2a568d75ec1e7eR240