1

Is there an API to create transactions in the Bitcoin blockchain with only a private key?

I am new to working with the Bitcoin and using its API. So, I have searched the API documentation. And here is what I have found.

It seems that I need the Bitcoin wallet to work with the Bitcoin blockchain API. Since the password to the wallet is required in almost every endpoint.

That is kind of confuses me very much. Since, I thought that the main purpose of the cryptocurrency is to avoid the third party management and presence in the transactions and the wallet is exactly the third party which right there.

So, I hope that someone here would be able to point me to a different documentation, which would allow me to conduct transactions by only having a private key. Or at least explain why there is such a huge discrepancy in the intentions and the current state of affairs: why does the Bitcoin blockchain has the third party in it?

Here is my objective: conduct transactions by only having a private key. The objective has led me to asking the question.

  • Bitcoin github.com/bitcoin/bitcoin doesn't have any 3rd parties. Blockchain.com is privately held company around cryptocurrencies, not even bitcoin focused. You can use some public libraries or even guis to create a transaction, and not having bitcoin node you can publish it here: blockstream.info/tx/push – Tony Sanak Jun 17 '20 at 20:26
  • @TonySanak, thank you very much. I will look in the resources you have linked. (y) – manymanymore Jun 17 '20 at 20:28
  • @TonySanak, are there any instructions on how could I conduct a transaction here? – manymanymore Jun 17 '20 at 21:21
  • @TonySanak, thank you very much. I am still stuck. I can not understand where can I find a clear description of the REST endpoints for the bitcoin blockchain. I would expect something like an API endpoint which given a private key would allow me to get a balance and then an endpoint which given two public keys and amount would allow me to conduct a transaction. Does such API exist? – manymanymore Jun 18 '20 at 17:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.