This PR solves two issues I found when trying to broadcast a transaction using the block explorer.
1- The block explorer's broadcast address itself seems to have been wrong. Checking at the esplora's API docs one can see there's no /broadcast endpoint. Instead a POST to /tx is what's required.
2- Bitcoin's Mainnet was always being selected no matter what the currentBitcoinNetwork variable was.
This PR solves two issues I found when trying to broadcast a transaction using the block explorer.
1- The block explorer's broadcast address itself seems to have been wrong. Checking at the esplora's API docs one can see there's no
/broadcast
endpoint. Instead a POST to/tx
is what's required.2- Bitcoin's Mainnet was always being selected no matter what the
currentBitcoinNetwork
variable was.