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

Question: How to get the transaction hex to be used as input when signing Bitcoin transaction #9

Open
arceus03 opened this issue Jun 24, 2021 · 2 comments

Comments

@arceus03
Copy link

I found a bit of description about this "transaction" data, but honestly I'm not sure how to generate it from my input address and previous tx hash and hex. (sorry I'm not much experienced with bitcoin) https://github.com/nimiq/ledger-api/blob/master/src/high-level-api/requests/bitcoin/request-sign-transaction-bitcoin.ts#L19-L21

image

@arceus03
Copy link
Author

@danimoh Can you please help with this?

@sisou
Copy link
Member

sisou commented Jul 13, 2021

@arceus03 You need the whole transaction in HEX format. You can get that either from the blockchain via the tx hash that you have, or manually from tools that allow to get the raw transaction, like this one: https://chainquery.com/bitcoin-cli/getrawtransaction

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

2 participants