Changed tutorial steps numbering to manual

This commit is contained in:
AlexanderBuzz
2023-11-17 17:08:45 +01:00
parent 6af308b5b9
commit a9678f26e2
2 changed files with 10 additions and 10 deletions

View File

@@ -55,7 +55,7 @@ Here are the basic steps you'll need to cover for almost any XRP Ledger project:
1. [Query the XRP Ledger.](#3-query-the-xrp-ledger)
### {{n.next()}}. Connect to the XRP Ledger
### 1. Connect to the XRP Ledger
To make queries and submit transactions, you need to connect to the XRP Ledger. To do this with `XRPL_PHP`, you can use the [`JsonRpcClient`](hhttps://alexanderbuzz.github.io/xrpl-php-docs/client.html):
@@ -94,7 +94,7 @@ The sample code in the previous section shows you how to connect to the Testnet,
const MAINNET_JSON_RPC_URL = "https://s2.ripple.com:51234/";
$client = new JsonRpcClient("MAINNET_JSON_RPC_URL");
### {{n.next()}}. Get account
### 2. Get account
To store value and execute transactions on the XRP Ledger, you need to get an account: a [set of keys](cryptographic-keys.html#key-components) and an [address](addresses.html) that's been [funded with enough XRP](accounts.html#creating-accounts) to meet the [account reserve](reserves.html). The address is the identifier of your account and you use the [private key](cryptographic-keys.html#private-key) to sign transactions that you submit to the XRP Ledger. For production purposes, you should take care to store your keys and set up a [secure signing method](secure-signing.html).
@@ -158,7 +158,7 @@ $wallet = Wallet::generate();
$fundWalletResponse = fundWallet($client, $wallet);
```
### {{n.next()}}. Query the XRP Ledger
### 3. Query the XRP Ledger
You can query the XRP Ledger to get information about [a specific account](account-methods.html), [a specific transaction](tx.html), the state of a [current or a historical ledger](ledger-methods.html), and [the XRP Ledger's decentralized exchange](path-and-order-book-methods.html). You need to make these queries, among other reasons, to look up account info to follow best practices for [reliable transaction submission](reliable-transaction-submission.html).
@@ -196,7 +196,7 @@ $accountInfoResponse = $client->syncRequest(($accountInfoRequest));
print_r($accountInfoResponse);
```
### {{n.next()}}. Starting the script
### 4. Starting the script
Now, we have a simple application that:

View File

@@ -34,7 +34,7 @@ To interact with the XRP Ledger, you need to set up a dev environment with the n
## Send a Payment on the Test Net
{% set n = cycler(* range(1,99)) %}
### {{n.next()}}. Get Credentials
### 1. Get Credentials
To transact on the XRP Ledger, you need an address and secret key, and some XRP. The address and secret key look like this:
@@ -65,7 +65,7 @@ The secret key shown here is for example only. For development purposes, you can
When you're [building production-ready software](production-readiness.html), you should use an existing account, and manage your keys using a [secure signing configuration](secure-signing.html).
### {{n.next()}}. Connect to a Testnet Server
### 2. Connect to a Testnet Server
First, you must connect to an XRP Ledger server so you can get the current status of your account and the shared ledger. You can use this information to [automatically fill in some required fields of a transaction](transaction-common-fields.html#auto-fillable-fields). You also must be connected to the network to submit transactions to it.
@@ -96,7 +96,7 @@ For this tutorial, click the following button to connect:
{% include '_snippets/interactive-tutorials/connect-step.md' %}
### {{n.next()}}. Prepare Transaction
### 3. Prepare Transaction
Typically, we create XRP Ledger transactions as objects in the JSON [transaction format](transaction-formats.html). The following example shows a minimal Payment specification:
@@ -164,7 +164,7 @@ _Java_
{{ end_step() }}
### {{n.next()}}. Sign the Transaction Instructions
### 4. Sign the Transaction Instructions
Signing a transaction uses your credentials to authorize the transaction on your behalf. The input to this step is a completed set of transaction instructions (usually JSON), and the output is a binary blob containing the instructions and a signature from the sender.
@@ -258,7 +258,7 @@ example transaction</button>
{{ end_step() }}
### {{n.next()}}. Wait for Validation
### 5. Wait for Validation
Most transactions are accepted into the next ledger version after they're submitted, which means it may take 4-7 seconds for a transaction's outcome to be final. If the XRP Ledger is busy or poor network connectivity delays a transaction from being relayed throughout the network, a transaction may take longer to be confirmed. (For more information on expiration of unconfirmed transactions, see [Reliable Transaction Submission](reliable-transaction-submission.html).)
@@ -295,7 +295,7 @@ _PHP_
{{ end_step() }}
### {{n.next()}}. Check Transaction Status
### 6. Check Transaction Status
To know for sure what a transaction did, you must look up the outcome of the transaction when it appears in a validated ledger version.