mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-21 04:05:49 +00:00
Update tutorial for testnet
This commit is contained in:
@@ -27,11 +27,11 @@ You can download the [Quickstart Samples](https://github.com/XRPLF/xrpl-dev-port
|
||||
## Get Accounts
|
||||
|
||||
1. Open `6.authorized-minter.html` in a browser.
|
||||
2. Get test accounts.
|
||||
1. If you have existing NFT-Devnet account seeds:
|
||||
2. Choose your ledger instance (_Testnet_ or _Devnet_).
|
||||
1. If you have existing test account seeds:
|
||||
1. Paste the account seeds in the **Seeds** field.
|
||||
2. Click **Get Accounts from Seeds**.
|
||||
2. If you do not have existing NFT-Devnet accounts:
|
||||
2. If you do not have existing test accounts:
|
||||
1. Click **Get New Standby Account**.
|
||||
2. Click **Get New Operational Account**.
|
||||
|
||||
@@ -398,9 +398,6 @@ Update the form with fields and buttons to support the new functions.
|
||||
<h1>Token Test Harness</h1>
|
||||
<form id="theForm">
|
||||
Choose your ledger instance:
|
||||
<input type="radio" id="xls" name="server"
|
||||
value="wss://xls20-sandbox.rippletest.net:51233" checked>
|
||||
<label for="xls20">XLS20-NFT</label>
|
||||
|
||||
<input type="radio" id="tn" name="server"
|
||||
value="wss://s.altnet.rippletest.net:51233">
|
||||
|
||||
@@ -360,9 +360,6 @@ For this form:
|
||||
<h1>Token Test Harness</h1>
|
||||
<form id="theForm">
|
||||
Choose your ledger instance:
|
||||
<input type="radio" id="xls" name="server"
|
||||
value="wss://xls20-sandbox.rippletest.net:51233" checked>
|
||||
<label for="xls20">XLS20-NFT</label>
|
||||
|
||||
<input type="radio" id="tn" name="server"
|
||||
value="wss://s.altnet.rippletest.net:51233">
|
||||
|
||||
@@ -28,12 +28,12 @@ You can download the [Quickstart Samples](https://github.com/XRPLF/xrpl-dev-port
|
||||
## Get Accounts
|
||||
|
||||
1. Open `5.broker-nfts.html` in a browser.
|
||||
2. Choose **XLS20-NFT** as your ledger instance.
|
||||
2. Choose your ledger instance.
|
||||
3. Get test accounts.
|
||||
1. If you have existing NFT-Devnet account seeds:
|
||||
1. If you have existing account seeds:
|
||||
1. Paste 3 account seeds in the **Seeds** field.
|
||||
2. Click **Get Accounts from Seeds**.
|
||||
2. If you do not have NFT-Devnet account seeds:
|
||||
2. If you do not have account seeds:
|
||||
1. Click **Get New Standby Account**.
|
||||
2. Click **Get New Operational Account**.
|
||||
3. Click **Get New Broker Account**
|
||||
@@ -625,9 +625,6 @@ Revise the HTML form to add a new Broker section at the top.
|
||||
<h1>Token Test Harness</h1>
|
||||
<form id="theForm">
|
||||
Choose your ledger instance:
|
||||
<input type="radio" id="xls" name="server"
|
||||
value="wss://xls20-sandbox.rippletest.net:51233" checked>
|
||||
<label for="xls20">XLS20-NFT</label>
|
||||
|
||||
<input type="radio" id="tn" name="server"
|
||||
value="wss://s.altnet.rippletest.net:51233">
|
||||
|
||||
@@ -10,24 +10,18 @@ labels:
|
||||
---
|
||||
# 1. Create Accounts and Send XRP
|
||||
|
||||
|
||||
This example shows how to:
|
||||
|
||||
|
||||
|
||||
1. Create accounts on the Testnet, funded with 10000 test XRP with no actual value.
|
||||
2. Retrieve the accounts from seed values.
|
||||
3. Transfer XRP between accounts.
|
||||
|
||||
When you create an account, you receive a public/private key pair offline. It does not appear on the ledger until it is funded with XRP. This example shows how to create accounts for Testnet, but not how to create an account that you can use on Mainnet.
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
|
||||
|
||||
|
||||
## Prerequisites
|
||||
|
||||
To get started, create a new folder on your local disk and install the JavaScript library using `npm`.
|
||||
@@ -47,7 +41,7 @@ To get test accounts:
|
||||
|
||||
|
||||
1. Open `1.get-accounts-send-xrp.html` in a browser
|
||||
2. Choose **NFT-Devnet**, **Testnet**, or **Devnet**.
|
||||
2. Choose **Testnet** or **Devnet**.
|
||||
3. Click **Get New Standby Account**.
|
||||
4. Click **Get New Operational Account.**
|
||||
5. Copy and paste the **Seeds** field in a persistent location, such as a Notepad, so that you can reuse the accounts after reloading the form.
|
||||
@@ -80,7 +74,7 @@ You can download the [Quickstart Samples](https://github.com/XRPLF/xrpl-dev-port
|
||||
|
||||
## ripplex-1-send-xrp.js
|
||||
|
||||
This example can be used with any XRP Ledger network. Currently, there are _Testnet_ and _Devnet,_ with the experimental _NFT-Devnet_ server with support for NFTokens. You can update the code to choose different or additional XRP Ledger networks.
|
||||
This example can be used with any XRP Ledger network, _Testnet_, or _Devnet_. You can update the code to choose different or additional XRP Ledger networks.
|
||||
|
||||
|
||||
### getNet()
|
||||
@@ -100,7 +94,6 @@ This function uses brute force `if` statements to discover the selected network
|
||||
|
||||
```
|
||||
let net
|
||||
if (document.getElementById("xls").checked) net = "wss://xls20-sandbox.rippletest.net:51233"
|
||||
if (document.getElementById("tn").checked) net = "wss://s.altnet.rippletest.net:51233"
|
||||
if (document.getElementById("dn").checked) net = "wss://s.devnet.rippletest.net:51233"
|
||||
return net
|
||||
@@ -380,7 +373,6 @@ Connect to your selected ledger.
|
||||
|
||||
```
|
||||
|
||||
|
||||
Prepare the transaction. This is a Payment transaction from the standby wallet to the operational wallet.
|
||||
|
||||
The _Payment_ transaction expects the XRP to be expressed in drops, or 1/millionth of an XRP. You can use the xrpToDrops utility to convert the send amount for you (which beats having to type an extra 6 zeroes to send 1 XRP).
|
||||
@@ -542,9 +534,6 @@ Create a standard HTML form to send transactions and requests, then display the
|
||||
<h1>Token Test Harness</h1>
|
||||
<form id="theForm">
|
||||
Choose your ledger instance:
|
||||
<input type="radio" id="xls" name="server"
|
||||
value="wss://xls20-sandbox.rippletest.net:51233" checked>
|
||||
<label for="xls20">XLS20-NFT</label>
|
||||
|
||||
<input type="radio" id="tn" name="server"
|
||||
value="wss://s.altnet.rippletest.net:51233">
|
||||
|
||||
@@ -648,9 +648,6 @@ Update the form to support the new functions.
|
||||
<h1>Token Test Harness</h1>
|
||||
<form id="theForm">
|
||||
Choose your ledger instance:
|
||||
<input type="radio" id="xls" name="server"
|
||||
value="wss://xls20-sandbox.rippletest.net:51233" checked>
|
||||
<label for="xls20">XLS20-NFT</label>
|
||||
|
||||
<input type="radio" id="tn" name="server"
|
||||
value="wss://s.altnet.rippletest.net:51233">
|
||||
|
||||
@@ -12,10 +12,12 @@ labels:
|
||||
|
||||
This example shows how to:
|
||||
|
||||
1. Mint new Non-Fungible Tokens (NFTokens).
|
||||
|
||||
1. Mint new Non-fungible Tokens (NFTokens).
|
||||
2. Get a list of existing NFTokens.
|
||||
3. Delete (Burn) a NFToken.
|
||||
|
||||
|
||||

|
||||
|
||||
|
||||
@@ -30,10 +32,10 @@ You can download the [Quickstart Samples](https://github.com/XRPLF/xrpl-dev-port
|
||||
|
||||
1. Open `3.mint-nfts.html` in a browser.
|
||||
2. Get test accounts.
|
||||
1. If you have existing NFT-Devnet account seeds:
|
||||
1. If you have existing Testnet account seeds:
|
||||
1. Paste the account seeds in the **Seeds** field.
|
||||
2. Click **Get Accounts from Seeds**.
|
||||
2. If you do not have existing NFT-Devnet accounts:
|
||||
2. If you do not have existing Testnet accounts:
|
||||
1. Click **Get New Standby Account**.
|
||||
2. Click **Get New Operational Account**.
|
||||
|
||||
@@ -480,11 +482,7 @@ Bold text in the following indicates changes to the form that support the new fu
|
||||
<body>
|
||||
<h1>Token Test Harness</h1>
|
||||
<form id="theForm">
|
||||
Choose your ledger instance:
|
||||
<input type="radio" id="xls" name="server"
|
||||
value="wss://xls20-sandbox.rippletest.net:51233" checked>
|
||||
<label for="xls20">XLS20-NFT</label>
|
||||
|
||||
Choose your ledger instance:
|
||||
<input type="radio" id="tn" name="server"
|
||||
value="wss://s.altnet.rippletest.net:51233">
|
||||
<label for="testnet">Testnet</label>
|
||||
|
||||
@@ -10,9 +10,12 @@ labels:
|
||||
|
||||
# 4. Transfer NFTokens
|
||||
|
||||
{% include '_snippets/nfts-disclaimer.md' %}
|
||||
|
||||
This example shows how to:
|
||||
|
||||
|
||||
|
||||
1. Create NFToken Sell Offers.
|
||||
2. Create NFToken Buy Offers.
|
||||
3. Accept NFToken Sell Offers.
|
||||
@@ -1189,9 +1192,6 @@ Update the form with fields and buttons to support the new functions.
|
||||
<h1>Token Test Harness</h1>
|
||||
<form id="theForm">
|
||||
Choose your ledger instance:
|
||||
<input type="radio" id="xls" name="server"
|
||||
value="wss://xls20-sandbox.rippletest.net:51233" checked>
|
||||
<label for="xls20">XLS20-NFT</label>
|
||||
|
||||
<input type="radio" id="tn" name="server"
|
||||
value="wss://s.altnet.rippletest.net:51233">
|
||||
|
||||
Reference in New Issue
Block a user