I tried to do exactly how in the link

Address targetAddress = new 
Address(parameters,"18MQPpjbB5UUwZBT7DALE6Q55pKCtfPCK3");
Wallet.SendResult result = restoredWallet.sendCoins(peerGroup, 
targetAddress,Coin.valueOf(600));

But I got almost the same error.
Could you help me?

понедельник, 13 августа 2018 г., 1:02:24 UTC+5 пользователь Andreas 
Schildbach написал:
>
> See https://bitcoinj.github.io/working-with-the-wallet#creating-spends 
>
>
>
> On 08/10/2018 10:40 AM, Diyor Rustamov wrote: 
> > Hi, I'm going to make send payment with bitcoinj from a wallet. I got 
> > the error 
> > 
> >     Exception in thread "main" 
> >     org.bitcoinj.core.InsufficientMoneyException: Insufficient money,  
> >     missing 0.0004729 BTC 
> > 
> > * * 
> > | 
> > 
> publicstaticTransactionsend(Walletwallet,StringdestinationAddress,longsatoshis,NetworkParametersparameters)throwsException{
>  
>
> >  Addressdest =Address.fromBase58(parameters,destinationAddress); 
> >  SendRequestrequest =SendRequest.to(dest,Coin.valueOf(satoshis)); 
> >  Wallet.SendResultresult =wallet.sendCoins(request); 
> >  TransactionendTransaction =result.broadcastComplete.get(); 
> >  returnendTransaction; 
> > } 
> > | 
> > 
> > 
> > Can you explain me how to make proper payments via bitcoinj ? 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> > Groups "bitcoinj" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> > an email to [email protected] <javascript:> 
> > <mailto:[email protected] <javascript:>>. 
> > For more options, visit https://groups.google.com/d/optout. 
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"bitcoinj" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to