bitcoin-ruby
bitcoin-ruby copied to clipboard
How to convert transaction to hex format?
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.
build_tx
returns tx
object and you can do that by the following code.
tx.to_payload.bth
@azuchi thanks, I submitted a pull request.
https://yolodice.com/r?pHbs-Pwq