mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-22 12:45:50 +00:00
ledger_entry amm fixes
This commit is contained in:
@@ -197,6 +197,26 @@ Request('ledger_entry - AccountRoot', {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Request('ledger_entry - AMM', {
|
||||||
|
description: "Returns a single Automated Market Maker object in its raw ledger format.",
|
||||||
|
link: "ledger_entry.html#get-amm-object",
|
||||||
|
status: "not_enabled",
|
||||||
|
body: {
|
||||||
|
"id": "example_get_amm",
|
||||||
|
"command": "ledger_entry",
|
||||||
|
"amm": {
|
||||||
|
"asset": {
|
||||||
|
"currency": "XRP"
|
||||||
|
},
|
||||||
|
"asset2": {
|
||||||
|
"currency" : "TST",
|
||||||
|
"issuer" : "rP9jPyP5kyvFRb6ZiRghAGw5u8SGAmU4bd"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ledger_index": "validated"
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
Request('ledger_entry - DirectoryNode', {
|
Request('ledger_entry - DirectoryNode', {
|
||||||
description: "Returns a directory object in its raw ledger format.",
|
description: "Returns a directory object in its raw ledger format.",
|
||||||
link: "ledger_entry.html#get-directorynode-object",
|
link: "ledger_entry.html#get-directorynode-object",
|
||||||
|
|||||||
@@ -166,7 +166,7 @@ Retrieve an Automated Market-Maker (AMM) object from the ledger. This is similar
|
|||||||
"command": "ledger_entry",
|
"command": "ledger_entry",
|
||||||
"amm": {
|
"amm": {
|
||||||
"asset": {
|
"asset": {
|
||||||
"XRP"
|
"currency": "XRP"
|
||||||
},
|
},
|
||||||
"asset2": {
|
"asset2": {
|
||||||
"currency" : "TST",
|
"currency" : "TST",
|
||||||
@@ -186,7 +186,7 @@ Retrieve an Automated Market-Maker (AMM) object from the ledger. This is similar
|
|||||||
{
|
{
|
||||||
"amm": {
|
"amm": {
|
||||||
"asset": {
|
"asset": {
|
||||||
"XRP"
|
"currency": "XRP"
|
||||||
},
|
},
|
||||||
"asset2": {
|
"asset2": {
|
||||||
"currency" : "TST",
|
"currency" : "TST",
|
||||||
@@ -202,7 +202,7 @@ Retrieve an Automated Market-Maker (AMM) object from the ledger. This is similar
|
|||||||
*Commandline*
|
*Commandline*
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
rippled json ledger_entry '{ "amm": { "asset": { "XRP" }, "asset2": { "currency" : "TST", "issuer" : "rP9jPyP5kyvFRb6ZiRghAGw5u8SGAmU4bd" } }, "ledger_index": "validated" }'
|
rippled json ledger_entry '{ "amm": { "asset": { "currency": "XRP" }, "asset2": { "currency" : "TST", "issuer" : "rP9jPyP5kyvFRb6ZiRghAGw5u8SGAmU4bd" } }, "ledger_index": "validated" }'
|
||||||
```
|
```
|
||||||
|
|
||||||
<!-- MULTICODE_BLOCK_END -->
|
<!-- MULTICODE_BLOCK_END -->
|
||||||
@@ -210,6 +210,7 @@ rippled json ledger_entry '{ "amm": { "asset": { "XRP" }, "asset2": { "currency"
|
|||||||
[Try it! >](websocket-api-tool.html?server=wss%3A%2F%2Famm.devnet.rippletest.net%3A51233%2F#ledger_entry-amm)
|
[Try it! >](websocket-api-tool.html?server=wss%3A%2F%2Famm.devnet.rippletest.net%3A51233%2F#ledger_entry-amm)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Get DirectoryNode Object
|
### Get DirectoryNode Object
|
||||||
|
|
||||||
Retrieve a [DirectoryNode](directorynode.html), which contains a list of other ledger objects. Can be provided as string (object ID of the Directory) or as an object.
|
Retrieve a [DirectoryNode](directorynode.html), which contains a list of other ledger objects. Can be provided as string (object ID of the Directory) or as an object.
|
||||||
|
|||||||
@@ -97,7 +97,6 @@ To describe XRP without an amount, specify it as a JSON object with _only_ a `cu
|
|||||||
## String Numbers
|
## String Numbers
|
||||||
|
|
||||||
{% include '_snippets/string-number-formatting.md' %}
|
{% include '_snippets/string-number-formatting.md' %}
|
||||||
<!--{#_ #}-->
|
|
||||||
|
|
||||||
## XRP Precision
|
## XRP Precision
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user