3

There are plenty of APIs for pushing to the Bitcoin network, like Smartbit's:

https://www.smartbit.com.au/api

However, the only API I found for Bitcoin Cash was Blocktrail's:

https://www.blocktrail.com/api/docs/lang/nodejs#payments_overview

And they do not seem to have a basic push endpoint.

timothyylim
  • 353
  • 1
  • 15

2 Answers2

3

I have listed a lot of Bitcoin Cash block explorers here, and most of them are Insight block explorers so I thought they should have Insight API. I checked all of them and the ones with API are:

MCCCS
  • 10,097
  • 5
  • 27
  • 55
2

All the websites listed in MCCCS' answer are no longer operational.

Instead, you can use https://rest.bitcoin.com/#/rawtransactions/sendRawTransactionSingle and paste in your raw transaction after you press the "try it" button.

Alternatively, you can use this command: curl -X GET "https://rest.bitcoin.com/v2/rawtransactions/sendRawTransaction/{your_raw_tx_here}" -H "accept: */*", replacing {your_raw_tx_here} by your raw transaction.

Update:

You can now use this awesome tool: https://bch.info/en/tools/broadcast to broadcast Bitcoin Cash transactions.

merc1er
  • 191
  • 4