hexonaut / bitcoin-transaction

Send Bitcoins from one wallet to another. This is designed to be as simple to use as possible.
MIT License
50 stars 37 forks source link

Unable to get Transaction response in Mainnet (Transaction Hash). #12

Open VishalDalve opened 5 years ago

VishalDalve commented 5 years ago

I'm able to create transaction, but when I checke on explorer, it is their but not getting in code itself.Thanks

bitcoinTransaction.getBalance(from, { network: "mainnet" }).then((balanceInBTC) => { return bitcoinTransaction.sendTransaction({ from: from, to: to, privKeyWIF: privKeyWIF, btc: balanceInBTC, fee:"hour", network: "mainnet" }); }).then((res) => { console.log(res.body); console.log("---------------------------------------------------------"); console.log("Hash: ",res.body.tx.hash);}

Response Getting : {}

hexonaut commented 5 years ago

I need more detail. Did the all the network requests go through? If not, which ones failed? Try switching to a different network if one of them isn't working.