0
Is there any web service anywhere that allows me to push raw transactions to the network via an ajax call? Blockchain's pushtx only works if you copy/paste so I can't build around it.
0
Is there any web service anywhere that allows me to push raw transactions to the network via an ajax call? Blockchain's pushtx only works if you copy/paste so I can't build around it.
2
Looks like the premise of this question was wrong. Blockchain.info DOES support raw transactions via ajax however you have to include ?cors=true to the end.
Note they also require application/x-www-form-urlencoded data. Here's what my request looked like in angular
$http({
method: 'POST'
,url: 'https://blockchain.info/pushtx?cors=true'
,data: $.param({tx:txHex})
,headers:{
"Content-Type":"application/x-www-form-urlencoded"
}
})
1
There are like a million services that will let you do this.
LuxStack - https://luxstack.com/docs (Ctrl-F "pushTransaction")
Chain.com - https://chain.com/docs#bitcoin-transaction-send
Any BitcoinJS exit node - https://github.com/bitcoinjs/node-bitcoin-exit/wiki/REST-API
Blocktrail.com - https://www.blocktrail.com/api/docs#sending_transactions
I'm sure there's more I'm forgetting.
Heads up, helloblock will be shutting down soon (it officially suspended on apr 1 2015). I'll check out the others. Thanks!~ – Aakil Fernandes – 2015-06-17T20:46:55.310
So it looks like all the services you listed require API Keys, which may not work in my use case. And the "permanent" exit node listed on the bitcoinjs repo is down so its probably safe to consider the project dead. – Aakil Fernandes – 2015-06-17T21:06:36.407
LuxStack link doesn't work – Riccardo Casatta – 2015-10-10T19:49:53.447
If you are building a service you need to make your own endpoint. Relying on anyone elses has privacy implications, and opens them to censoring you at their leisure. – Anonymous – 2015-06-17T20:21:08.330
I agree, but I'm not able to deal with the legal implications of running my own service =( – Aakil Fernandes – 2015-06-17T20:22:09.503