Closed sparr0w7 closed 6 years ago
See #4 , first few comments.
SendRequest.setUseForkId(true) <--- added code???
SendRequest request = SendRequest.to(Address.fromBase58(getMainNetNetwork(), toAddress), Coin.parseCoin(amount));
request.setUseForkId(true);
I speak a very basic level of English. Sorry
Yes, that is the answer.
Thank you a lot :)
Great, we will count this issue as closed.
This is the code that I made. Is there anything to correct?
public void send(String toAddress , String amount)
{
try {
SendRequest request = SendRequest.to(Address.fromBase58(getMainNetNetwork(), toAddress), Coin.parseCoin(amount));
kit.wallet().completeTx(request);
kit.wallet().commitTx(request.tx);
kit.peerGroup().broadcastTransaction(request.tx).broadcast();
} catch (InsufficientMoneyException e) {
e.printStackTrace();
}
}