You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using node. I am using exact mention code but I am not able to pay. I have tried with multiple addresses.
I have attached the snapshot of code. Please help me. app.get("/pay/:address", function(req, res) { client.initWallet("ashokrayaltestnet", "12345678!@#$", function(err, wallet) { value = blocktrail.toSatoshi(1.1); wallet.pay({'1NcXPMRaanz43b1kokpPuYDdk6GGDvxT2T': value}, null, false, true, blocktrail.Wallet.FEE_STRATEGY_BASE_FEE, function(err, result) { if(err){ console.log(err); } res.send(JSON.stringify(result)); }); wallet.pay({'1NcXPMRaanz43b1kokpPuYDdk6GGDvxT2T': value}, null, false, true, blocktrail.Wallet.FEE_STRATEGY_LOW_PRIORITY, function(err, result) { if(err){ console.log(err); } res.send(JSON.stringify(result)); }); }); });
The text was updated successfully, but these errors were encountered:
ashokrayaltestnet you mention testnet in your wallet identifier. If it's a testnet wallet, only testnet addresses will work, but you are passing in a mainnet address.
I am using node. I am using exact mention code but I am not able to pay. I have tried with multiple addresses.
I have attached the snapshot of code. Please help me.
app.get("/pay/:address", function(req, res) { client.initWallet("ashokrayaltestnet", "12345678!@#$", function(err, wallet) { value = blocktrail.toSatoshi(1.1); wallet.pay({'1NcXPMRaanz43b1kokpPuYDdk6GGDvxT2T': value}, null, false, true, blocktrail.Wallet.FEE_STRATEGY_BASE_FEE, function(err, result) { if(err){ console.log(err); } res.send(JSON.stringify(result)); }); wallet.pay({'1NcXPMRaanz43b1kokpPuYDdk6GGDvxT2T': value}, null, false, true, blocktrail.Wallet.FEE_STRATEGY_LOW_PRIORITY, function(err, result) { if(err){ console.log(err); } res.send(JSON.stringify(result)); }); }); });
The text was updated successfully, but these errors were encountered: