mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-22 12:45:50 +00:00
Revise payment tutorials, add/remove screenshots
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,12 @@
|
||||
---
|
||||
html: send-payments-using-javascript.html
|
||||
parent: javascript.html
|
||||
top_nav_grouping: Article Types
|
||||
seo:
|
||||
description: Send XRP and Issued Currencies on the XRPL.
|
||||
labels:
|
||||
- Accounts
|
||||
- Transactions
|
||||
- XRP
|
||||
- Issued Currencies
|
||||
metadata:
|
||||
indexPage: true
|
||||
---
|
||||
@@ -9,5 +14,7 @@ metadata:
|
||||
|
||||
Send XRP and issued currency on the XRP Ledger using JavaScript.
|
||||
|
||||
Download and expand the [Payment Modular Tutorial Samples](/_code-samples/modular-tutorials/payment-modular-tutorials.zip) archive.
|
||||
|
||||
|
||||
{% child-pages /%}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -17,7 +17,7 @@ Once an account receives an MPT, it can send the MPT to another account, provide
|
||||
|
||||
The Send MPT utility <!-- embedded below -->lets you create an account, authorize it to receive a specific MPT issuance, then send it the authorized MPT from an issuer or holder account. (You can issue an MPT using the [MPT Generator](../../../use-cases/tokenization/creating-an-asset-backed-multi-purpose-token.md) utility.)
|
||||
|
||||

|
||||
[](../../../img/mt-send-mpt-0-empty-form.png)
|
||||
|
||||
You can download a [standalone version of the MPT Sender](../../../../_code-samples/mpt-sender/send-mpt.zip) as sample code<!--, or use the embedded form that follows-->.
|
||||
|
||||
@@ -31,13 +31,13 @@ To get the accounts:
|
||||
2. Choose your ledger instance (**Devnet** or **Testnet**).
|
||||
3. If you used the MPT Generator:
|
||||
1. Paste the gathered info in the **Result** field.
|
||||

|
||||
[](../../../img/mt-send-mpt-1-gathered-info.png)
|
||||
2. Cut and paste the MPT Issuance ID to the **MPT Issuance ID** field.
|
||||
3. Click **Distribute Account Info** to populate the **Account 1** fields.<br/><br/>
|
||||
(If you did not use the MPT Generator, enter the **Account 1 Name**, **Account 1 Address**, **Account 1 Seed**, and **MPT Issuance ID** in the corresponding fields.)
|
||||
4. Click **Get New Account 2**.
|
||||
5. Optionally, add the **Account 2 Name**, an arbitrary human-readable name that helps to differentiate the accounts.
|
||||

|
||||
[](../../../img/mt-send-mpt-2-account-2.png)
|
||||
|
||||
## Authorize MPT
|
||||
|
||||
@@ -48,7 +48,7 @@ To authorize Account 2 to accept MPTs:
|
||||
1. Click the **Account 2** radio button.
|
||||
2. Enter an **Amount**, the maximum number of MPTs the account will accept.
|
||||
2. Click **Authorize MPTs**.
|
||||

|
||||
[](../../../img/mt-send-mpt-2-authorize-mpt.png)
|
||||
|
||||
## Send MPT
|
||||
|
||||
@@ -59,7 +59,7 @@ To send an MPT:
|
||||
2. Enter an **Amount** of MPTs to send.
|
||||
3. Enter the **Destination** (likely the value in the **Account 2 Address** field, but it can be any account on the same ledger instance).
|
||||
4. Click **Send MPT**.
|
||||

|
||||
[](../../../img/mt-send-mpt-3-send-mpt.png)
|
||||
|
||||
## Get MPTs
|
||||
|
||||
@@ -67,7 +67,7 @@ To verify receipt of the MPTs:
|
||||
|
||||
1. Click the **Account 2** radio button.
|
||||
2. Click **Get MPTs**.
|
||||

|
||||
[](../../../img/mt-send-mpt-4-get-mpts.png)
|
||||
|
||||
# Code Walkthrough
|
||||
|
||||
|
||||
Reference in New Issue
Block a user