Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to convert transaction to hex format? #289

Open
yegor256 opened this issue Apr 9, 2019 · 3 comments
Open

How to convert transaction to hex format? #289

yegor256 opened this issue Apr 9, 2019 · 3 comments

Comments

@yegor256
Copy link

yegor256 commented Apr 9, 2019

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.

@azuchi
Copy link
Contributor

azuchi commented Apr 10, 2019

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

tx.to_payload.bth

@yegor256
Copy link
Author

@azuchi thanks, I submitted a pull request.

@77088
Copy link

77088 commented Aug 10, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants