mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 19:55:54 +00:00
Merge branch 'master' into Updates_for_JS2.2.3
This commit is contained in:
@@ -301,7 +301,7 @@ JSON-RPC要求:
|
||||
"Account": "rG5Ro9e3uGEZVCh3zu5gB9ydKUskCs221W",
|
||||
"Sequence": 4,
|
||||
"LastLedgerSequence": 10268600,
|
||||
"Fee": 10000,
|
||||
"Fee": "10000",
|
||||
"Amount": {
|
||||
"currency": "FOO",
|
||||
"issuer": "rG5Ro9e3uGEZVCh3zu5gB9ydKUskCs221W",
|
||||
|
||||
@@ -319,7 +319,7 @@ Request:
|
||||
"Account": "rG5Ro9e3uGEZVCh3zu5gB9ydKUskCs221W",
|
||||
"Sequence": 4,
|
||||
"LastLedgerSequence": 10268600,
|
||||
"Fee": 10000,
|
||||
"Fee": "10000",
|
||||
"Amount": {
|
||||
"currency": "FOO",
|
||||
"issuer": "rG5Ro9e3uGEZVCh3zu5gB9ydKUskCs221W",
|
||||
|
||||
@@ -269,7 +269,7 @@ Disconnect from the ledger.
|
||||
|
||||
|
||||
|
||||
### Burn Token
|
||||
### Burn Token
|
||||
|
||||
|
||||
```
|
||||
@@ -295,7 +295,7 @@ Connect to the ledger and get the account wallets.
|
||||
```
|
||||
|
||||
|
||||
Define the transaction.
|
||||
Define the transaction.
|
||||
|
||||
|
||||
```
|
||||
@@ -787,3 +787,8 @@ Bold text in the following indicates changes to the form that support the new fu
|
||||
| Previous | Next |
|
||||
| :--- | ---: |
|
||||
| [← 2. Create TrustLine and Send Currency >](create-trustline-send-currency.html) | [4. Transfer NFTokens → >](transfer-nftokens.html) |
|
||||
|
||||
<!--{# common link defs #}-->
|
||||
{% include '_snippets/rippled-api-links.md' %}
|
||||
{% include '_snippets/tx-type-links.md' %}
|
||||
{% include '_snippets/rippled_versions.md' %}
|
||||
|
||||
@@ -150,7 +150,7 @@ To cancel a buy or sell offer that you have created:
|
||||
|
||||
|
||||
|
||||
# Code Walkthrough
|
||||
# Code Walkthrough
|
||||
|
||||
You can download the [Quickstart Samples](https://github.com/XRPLF/xrpl-dev-portal/tree/master/content/_code-samples/quickstart/js/quickstart.zip) archive to try each of the samples in your own browser.
|
||||
|
||||
@@ -227,7 +227,7 @@ If the Destination field is not empty, append it to the transaction. When the de
|
||||
|
||||
Submit the transaction and wait for the results.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
```
|
||||
@@ -235,7 +235,7 @@ Submit the transaction and wait for the results.
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
```
|
||||
@@ -415,7 +415,7 @@ Request the list of buy offers for the token.
|
||||
|
||||
Report the results of the transaction.
|
||||
|
||||
|
||||
|
||||
|
||||
```
|
||||
results += "\n\nTransaction result:\n" +
|
||||
@@ -893,6 +893,7 @@ async function oPcreateSellOffer() {
|
||||
client.disconnect()
|
||||
} // End of oPcreateSellOffer()
|
||||
|
||||
|
||||
// *******************************************************
|
||||
// ************** Operational Create Buy Offer ***********
|
||||
// *******************************************************
|
||||
@@ -967,6 +968,7 @@ async function oPcreateBuyOffer() {
|
||||
client.disconnect()
|
||||
}// End of oPcreateBuyOffer()
|
||||
|
||||
|
||||
// *******************************************************
|
||||
// ************* Operational Cancel Offer ****************
|
||||
// *******************************************************
|
||||
@@ -1110,6 +1112,7 @@ async function oPacceptSellOffer() {
|
||||
client.disconnect()
|
||||
}// End of acceptSellOffer()
|
||||
|
||||
|
||||
// *******************************************************
|
||||
// ********* Operational Accept Buy Offer ****************
|
||||
// *******************************************************
|
||||
@@ -1151,6 +1154,7 @@ async function oPacceptBuyOffer() {
|
||||
document.getElementById('operationalResultField').value = results
|
||||
client.disconnect()
|
||||
}// End of acceptBuyOffer()
|
||||
|
||||
```
|
||||
|
||||
|
||||
@@ -1531,3 +1535,7 @@ Update the form with fields and buttons to support the new functions.
|
||||
| :--- | ---: |
|
||||
| [← 3. Mint and Burn NFTokens >](mint-and-burn-nftokens.html) | [5. Broker a NFToken Sale → >](broker-sale.html) |
|
||||
|
||||
<!--{# common link defs #}-->
|
||||
{% include '_snippets/rippled-api-links.md' %}
|
||||
{% include '_snippets/tx-type-links.md' %}
|
||||
{% include '_snippets/rippled_versions.md' %}
|
||||
|
||||
@@ -6,6 +6,7 @@ filters:
|
||||
- interactive_steps
|
||||
- include_code
|
||||
labels:
|
||||
- Decentralized Exchange
|
||||
- Tokens
|
||||
---
|
||||
# Trade in the Decentralized Exchange
|
||||
@@ -22,6 +23,12 @@ This page provides JavaScript examples that use the [xrpl.js](https://js.xrpl.or
|
||||
|
||||
Since JavaScript works in the web browser, you can read along and use the interactive steps without any setup.
|
||||
|
||||
## Example Code
|
||||
|
||||
Complete sample code for all of the steps of this tutorial is available under the [MIT license](https://github.com/XRPLF/xrpl-dev-portal/blob/master/LICENSE).
|
||||
|
||||
- See [Code Samples: Trade in the Decentralized Exchange](https://github.com/XRPLF/xrpl-dev-portal/tree/master/content/_code-samples/trade-in-the-decentralized-exchange/) in the source repository for this website.
|
||||
|
||||
|
||||
## Steps
|
||||
{% set n = cycler(* range(1,99)) %}
|
||||
|
||||
Reference in New Issue
Block a user