mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-21 20:25:51 +00:00
fix formatting
This commit is contained in:
@@ -3,7 +3,6 @@ final HttpUrl rippledUrl = HttpUrl.get("https://s.altnet.rippletest.net:51234/")
|
|||||||
XrplClient xrplClient = new XrplClient(rippledUrl);
|
XrplClient xrplClient = new XrplClient(rippledUrl);
|
||||||
|
|
||||||
// Create a Wallet using a WalletFactory
|
// Create a Wallet using a WalletFactory
|
||||||
|
|
||||||
final WalletFactory walletFactory = DefaultWalletFactory.getInstance();
|
final WalletFactory walletFactory = DefaultWalletFactory.getInstance();
|
||||||
final Wallet testWallet = walletFactory.randomWallet(true).wallet();
|
final Wallet testWallet = walletFactory.randomWallet(true).wallet();
|
||||||
|
|
||||||
@@ -14,10 +13,13 @@ System.out.println("Classic Address: " + classicAddress);
|
|||||||
System.out.println("X-Address: " + xAddress);
|
System.out.println("X-Address: " + xAddress);
|
||||||
|
|
||||||
// Fund the account using the testnet Faucet
|
// Fund the account using the testnet Faucet
|
||||||
final FaucetClient faucetClient = FaucetClient.construct(HttpUrl.get("https://faucet.altnet.rippletest.net"));
|
final FaucetClient faucetClient = FaucetClient
|
||||||
|
.construct(HttpUrl.get("https://faucet.altnet.rippletest.net"));
|
||||||
faucetClient.fundAccount(FundAccountRequest.of(classicAddress));
|
faucetClient.fundAccount(FundAccountRequest.of(classicAddress));
|
||||||
|
|
||||||
// Look up your Account Info
|
// Look up your Account Info
|
||||||
final AccountInfoRequestParams requestParams = AccountInfoRequestParams.of(classicAddress);
|
final AccountInfoRequestParams requestParams = AccountInfoRequestParams.of(classicAddress);
|
||||||
final AccountInfoResult accountInfoResult = xrplClient.accountInfo(requestParams);
|
final AccountInfoResult accountInfoResult = xrplClient.accountInfo(requestParams);
|
||||||
|
|
||||||
|
// Print the result
|
||||||
System.out.println(accountInfoResult);
|
System.out.println(accountInfoResult);
|
||||||
|
|||||||
@@ -12,7 +12,8 @@ final Address classicAddress = testWallet.classicAddress();
|
|||||||
System.out.println("Classic Address: " + classicAddress);
|
System.out.println("Classic Address: " + classicAddress);
|
||||||
|
|
||||||
// Fund the account using the testnet Faucet
|
// Fund the account using the testnet Faucet
|
||||||
final FaucetClient faucetClient = FaucetClient.construct(HttpUrl.get("https://faucet.altnet.rippletest.net"));
|
final FaucetClient faucetClient = FaucetClient
|
||||||
|
.construct(HttpUrl.get("https://faucet.altnet.rippletest.net"));
|
||||||
faucetClient.fundAccount(FundAccountRequest.of(classicAddress));
|
faucetClient.fundAccount(FundAccountRequest.of(classicAddress));
|
||||||
System.out.println("Funded the account using the Testnet faucet.");
|
System.out.println("Funded the account using the Testnet faucet.");
|
||||||
|
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ You can query the XRP Ledger to get information about [a specific account](accou
|
|||||||
|
|
||||||
Here, we'll use the [`XrplClient` we constructed](#1-connect-to-the-xrp-ledger) to look up information about the [wallet we generated](#2-generate-wallet) in the previous step.
|
Here, we'll use the [`XrplClient` we constructed](#1-connect-to-the-xrp-ledger) to look up information about the [wallet we generated](#2-generate-wallet) in the previous step.
|
||||||
|
|
||||||
{{ include_code("_code-samples/xrpl4j/GetAccountInfo.java", start_with="// Look up your Account Info", language="java") }}
|
{{ include_code("_code-samples/xrpl4j/GetAccountInfo.java", start_with="// Look up your Account Info", end_before="// Print the result", language="java") }}
|
||||||
|
|
||||||
|
|
||||||
### {{n.next()}}. Putting it all together
|
### {{n.next()}}. Putting it all together
|
||||||
|
|||||||
Reference in New Issue
Block a user