mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-11-03 05:57:21 +00:00
SendRequest example: Fix the print info.
This commit is contained in:
committed by
Andreas Schildbach
parent
cb35fb5ad9
commit
b559609f7b
@@ -38,7 +38,6 @@ public class SendRequest {
|
|||||||
kit.startAsync();
|
kit.startAsync();
|
||||||
kit.awaitRunning();
|
kit.awaitRunning();
|
||||||
|
|
||||||
System.out.println("Send money to: " + kit.wallet().currentReceiveAddress().toString());
|
|
||||||
|
|
||||||
// How much coins do we want to send?
|
// How much coins do we want to send?
|
||||||
// The Coin class represents a monetary Bitcoin value.
|
// The Coin class represents a monetary Bitcoin value.
|
||||||
@@ -48,6 +47,7 @@ public class SendRequest {
|
|||||||
// To which address you want to send the coins?
|
// To which address you want to send the coins?
|
||||||
// The Address class represents a Bitcoin address.
|
// The Address class represents a Bitcoin address.
|
||||||
Address to = Address.fromBase58(params, "mupBAFeT63hXfeeT4rnAUcpKHDkz1n4fdw");
|
Address to = Address.fromBase58(params, "mupBAFeT63hXfeeT4rnAUcpKHDkz1n4fdw");
|
||||||
|
System.out.println("Send money to: " + to.toString());
|
||||||
|
|
||||||
// There are different ways to create and publish a SendRequest. This is probably the easiest one.
|
// There are different ways to create and publish a SendRequest. This is probably the easiest one.
|
||||||
// Have a look at the code of the SendRequest class to see what's happening and what other options you have: https://bitcoinj.github.io/javadoc/0.11/com/google/bitcoin/core/Wallet.SendRequest.html
|
// Have a look at the code of the SendRequest class to see what's happening and what other options you have: https://bitcoinj.github.io/javadoc/0.11/com/google/bitcoin/core/Wallet.SendRequest.html
|
||||||
|
|||||||
Reference in New Issue
Block a user