mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-15 09:15:50 +00:00
rippled - ledger cli tx option
This commit is contained in:
@@ -2911,6 +2911,7 @@ An example of the request format:
|
||||
<!-- <div class='multicode'> -->
|
||||
|
||||
*WebSocket*
|
||||
|
||||
```
|
||||
{
|
||||
"command": "ledger",
|
||||
@@ -2923,6 +2924,7 @@ An example of the request format:
|
||||
```
|
||||
|
||||
*JSON-RPC*
|
||||
|
||||
```
|
||||
{
|
||||
"method": "ledger",
|
||||
@@ -2939,9 +2941,12 @@ An example of the request format:
|
||||
```
|
||||
|
||||
*Commandline*
|
||||
|
||||
```
|
||||
#Syntax: ledger ledger_index|ledger_hash [full]
|
||||
rippled ledger current false
|
||||
#Syntax: ledger ledger_index|ledger_hash [full|tx]
|
||||
# "full" is equivalent to "full": true
|
||||
# "tx" is equivalent to "transactions": true
|
||||
rippled ledger current
|
||||
```
|
||||
|
||||
<!-- </div> -->
|
||||
@@ -2954,7 +2959,7 @@ The request can contain the following parameters:
|
||||
|-------|------|-------------|
|
||||
| accounts | Boolean | (Optional, defaults to false) If true, return information on accounts in the ledger. *Admin required.* If enabled, this method returns a large amount of data, which may cause the request to fail due to a timeout, depending on the server load and capabilities. |
|
||||
| transactions | Boolean | (Optional, defaults to false) If true, return information on transactions in the specified ledger version. |
|
||||
| full | Boolean | (Optional, defaults to false) If true, return full information on the entire ledger. (Equivalent to enabling `transactions`, `accounts`, and `expand` *Admin required* |
|
||||
| full | Boolean | (Optional, defaults to false) **Admin required** If true, return full information on the entire ledger. (Equivalent to enabling `transactions`, `accounts`, and `expand`.) **Caution:** This is a very large amount of data -- on the order of several hundred megabytes! |
|
||||
| expand | Boolean | (Optional, defaults to false) Provide full JSON-formatted information for transaction/account information instead of just hashes |
|
||||
| ledger\_hash | String | (Optional) A 20-byte hex string for the ledger version to use. (See [Specifying a Ledger](#specifying-ledgers)) |
|
||||
| ledger\_index | String or Unsigned Integer| (Optional) The sequence number of the ledger to use, or a shortcut string to choose a ledger automatically. (See [Specifying a Ledger](#specifying-ledgers))|
|
||||
|
||||
@@ -3568,8 +3568,10 @@ rippled wallet_propose test
|
||||
}
|
||||
</code></pre>
|
||||
<p><em>Commandline</em></p>
|
||||
<pre><code>#Syntax: ledger ledger_index|ledger_hash [full]
|
||||
rippled ledger current false
|
||||
<pre><code>#Syntax: ledger ledger_index|ledger_hash [full|tx]
|
||||
# "full" is equivalent to "full": true
|
||||
# "tx" is equivalent to "transactions": true
|
||||
rippled ledger current
|
||||
</code></pre>
|
||||
</div>
|
||||
<p><a class="button" href="ripple-api-tool.html#ledger">Try it! ></a></p>
|
||||
@@ -3596,7 +3598,7 @@ rippled ledger current false
|
||||
<tr>
|
||||
<td>full</td>
|
||||
<td>Boolean</td>
|
||||
<td>(Optional, defaults to false) If true, return full information on the entire ledger. (Equivalent to enabling <code>transactions</code>, <code>accounts</code>, and <code>expand</code> <em>Admin required</em></td>
|
||||
<td>(Optional, defaults to false) <strong>Admin required</strong> If true, return full information on the entire ledger. (Equivalent to enabling <code>transactions</code>, <code>accounts</code>, and <code>expand</code>.) <strong>Caution:</strong> This is a very large amount of data -- on the order of several hundred megabytes!</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>expand</td>
|
||||
|
||||
Reference in New Issue
Block a user