0
I have a full bitcoin core node setup and would like to use it to just "broadcast" my signed transactions. But what is required to make a raw transaction using PHP and Javascript? The variables I have are just the private key, amount i want to send, and a send to address. What other missing data do I need?
Is there a good easy tutorial to follow for doing this in PHP and Javascript?
I want to make a static html/js page where I can paste my private key and other data into and it would output a "signed" transaction.
I was hoping that I was able to make a raw transaction without the need to access any other data. But from what your saying I still need to query the blockchain to get my unspent UTXO's derived from my public key right? Is there a way I can code my html/js static page to just query a public database with this data instead of install any other software? I want to make it as streamlined as possible. thanks! – Patoshi パトシ – 2019-01-07T17:59:44.237
1
You can try querying the Libbitcoin mainnet servers (e.g. mainnet1.libbitcoin.net) for testing purposes. These are in V3, and index all transactions by address, which is what you need. The caveat is that the server-api is a ZeroMQ interface, which you can query with both PHP/JS. See the fetch_history query command at https://github.com/libbitcoin/libbitcoin-server/wiki/Query-Service
– James C. – 2019-01-07T18:05:51.033