I'm having trouble sending a transaction. I've been following the errors, but not sure where the problem is.
Unable to send Transaction! Error: Unable to build Transaction
Error: No Inputs or Outputs selected! Fail! at TransactionBuilder.sendTX (TransactionBuilder.js:642)
sendPayment(){
let address = new HDMW.Address(this.digibyte.seed, HDMW.Networks.digibyte, false);
this.myWallet.sendPayment({
from: address,
to: { "DU22gCjXbV8R43PPJXb8ichDfEVQdHJsaa": 1 },
coin: "digibyte",
}).then(function(txid){
this.txid = txid;
console.log("Successfully sent Transaction! " + this.txid);
}).catch(function(error){
console.error("Unable to send Transaction!", error)
})
}
sendPayment(){
this.myWallet.sendPayment({
to: { "DU22gCjXbV8R43PPJXb8ichDfEVQdHJsaa": 1 },
coin: "digibyte",
}).then(function(txid){
this.txid = txid;
console.log("Successfully sent Transaction! " + this.txid);
}).catch(function(error){
console.error("Unable to send Transaction!", error)
})
}
I guess I'm not sure how to pass the options details correctly.