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 : {}
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 : {}