bitcoin-ruby icon indicating copy to clipboard operation
bitcoin-ruby copied to clipboard

How to convert transaction to hex format?

Open yegor256 opened this issue 5 years ago • 3 comments

I'm going to relay my transaction through this gateway: https://www.blockchain.com/btc/pushtx They want me to send them hex data. How can I convert what build_tx produces into hex? Please, update the README.

yegor256 avatar Apr 09 '19 14:04 yegor256

build_tx returns tx object and you can do that by the following code.

tx.to_payload.bth

azuchi avatar Apr 10 '19 00:04 azuchi

@azuchi thanks, I submitted a pull request.

yegor256 avatar Apr 10 '19 07:04 yegor256

https://yolodice.com/r?pHbs-Pwq

77088 avatar Aug 10 '20 18:08 77088