account_currencies - Get a list of currencies an account can send or receiveaccount_channels - Get a list of payment channels where the account is the source of the channelaccount_info - Get basic data about an accountaccount_lines - Get info about an account's trust linesaccount_objects - Get all ledger objects owned by an accountaccount_offers - Get info about an account's currency exchange offersaccount_tx - Get info about an account's transactionsbook_offers - Get info about offers to exchange two currencieschannel_authorize - Sign a claim for money from a payment channelchannel_verify - Check a payment channel claim's signaturefee - Get information about transaction costgateway_balances - Calculate total amounts issued by an accountledger - Get info about a ledger versionstrictledger_hashledger_indexactNotFound - The address specified in the account field of the request does not correspond to an account in the ledger.lgrNotFound - The ledger specified by the ledger_hash or ledger_index does not exist, or it does exist but the server does not have it.(Requires the PayChan amendment to be enabled. )
The account_channels method returns information about an account's Payment Channels. This includes only channels where the specified account is the channel's source, not the destination. (A channel's "source" and "owner" are the same.) All information retrieved is relative to a particular version of the ledger.
An example of the request format:
+{
+ "id": 1,
+ "command": "account_channels",
+ "account": "rN7n7otQDd6FczFgLdSqtcsAUxDkw6fzRH",
+ "destination_account": "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn",
+ "ledger_index": "validated"
+}
+{
+ "method": "account_channels",
+ "params": [{
+ "account": "rN7n7otQDd6FczFgLdSqtcsAUxDkw6fzRH",
+ "destination_account": "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn",
+ "ledger_index": "validated"
+ }]
+}
+#Syntax: account_channels <account> [<destination_account>] [<ledger>]
+rippled account_channels rN7n7otQDd6FczFgLdSqtcsAUxDkw6fzRH rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn validated
+The request includes the following parameters:
+| Field | +Type | +Description | +
|---|---|---|
account |
+String | +The unique identifier of an account, typically the account's Address. The request returns channels where this account is the channel's owner/source. | +
destination_account |
+String | +(Optional) The unique identifier of an account, typically the account's Address. If provided, filter results to payment channels whose destination is this account. | +
ledger_hash |
+String | +(Optional) A 20-byte hex string for the ledger version to use. (See Specifying a Ledger) | +
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) | +
limit |
+Integer | +(Optional) Limit the number of transactions to retrieve. The server is not required to honor this value. Must be within the inclusive range 10 to 400. Defaults to 200. | +
marker |
+(Not Specified) | +(Optional) Value from a previous paginated response. Resume retrieving data where that response left off. | +
An example of a successful response:
+{
+ "id": 2,
+ "status": "success",
+ "type": "response",
+ "result": {
+ "account": "rN7n7otQDd6FczFgLdSqtcsAUxDkw6fzRH",
+ "channels": [
+ {
+ "account": "rN7n7otQDd6FczFgLdSqtcsAUxDkw6fzRH",
+ "amount": "100000000",
+ "balance": "1000000",
+ "channel_id": "5DB01B7FFED6B67E6B0414DED11E051D2EE2B7619CE0EAA6286D67A3A4D5BDB3",
+ "destination_account": "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn",
+ "destination_tag": 20170428,
+ "expiration": 547073182,
+ "public_key": "aB44YfzW24VDEJQ2UuLPV2PvqcPCSoLnL7y5M1EzhdW4LnK5xMS3",
+ "public_key_hex": "023693F15967AE357D0327974AD46FE3C127113B1110D6044FD41E723689F81CC6",
+ "settle_delay": 86400
+ }
+ ]
+ }
+}
+200 OK
+
+{
+ "result": {
+ "account": "rN7n7otQDd6FczFgLdSqtcsAUxDkw6fzRH",
+ "channels": [{
+ "account": "rN7n7otQDd6FczFgLdSqtcsAUxDkw6fzRH",
+ "amount": "100000000",
+ "balance": "0",
+ "channel_id": "5DB01B7FFED6B67E6B0414DED11E051D2EE2B7619CE0EAA6286D67A3A4D5BDB3",
+ "destination_account": "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn",
+ "destination_tag": 20170428,
+ "public_key": "aB44YfzW24VDEJQ2UuLPV2PvqcPCSoLnL7y5M1EzhdW4LnK5xMS3",
+ "public_key_hex": "023693F15967AE357D0327974AD46FE3C127113B1110D6044FD41E723689F81CC6",
+ "settle_delay": 86400
+ }],
+ "status": "success"
+ }
+}
+200 OK
+
+{
+ "result": {
+ "account": "rN7n7otQDd6FczFgLdSqtcsAUxDkw6fzRH",
+ "channels": [{
+ "account": "rN7n7otQDd6FczFgLdSqtcsAUxDkw6fzRH",
+ "amount": "100000000",
+ "balance": "0",
+ "channel_id": "5DB01B7FFED6B67E6B0414DED11E051D2EE2B7619CE0EAA6286D67A3A4D5BDB3",
+ "destination_account": "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn",
+ "destination_tag": 20170428,
+ "public_key": "aB44YfzW24VDEJQ2UuLPV2PvqcPCSoLnL7y5M1EzhdW4LnK5xMS3",
+ "public_key_hex": "023693F15967AE357D0327974AD46FE3C127113B1110D6044FD41E723689F81CC6",
+ "settle_delay": 86400
+ }],
+ "status": "success"
+ }
+}
+The response follows the standard format, with a successful result containing the following fields:
+| Field | +Type | +Description | +
|---|---|---|
account |
+String | +The address of the source/owner of the payment channels. This corresponds to the account field of the request. |
+
channels |
+Array of Channel Objects | +Payment channels owned by this account. |
+
limit |
+Number | +(May be omitted) The limit to how many channel objects were actually returned by this request. | +
marker |
+(Not Specified) | +(May be omitted) Server-defined value for pagination. Pass this to the next call to resume getting results where this call left off. Omitted when there are no additional pages after this one. | +
Each Channel Object has the following fields:
+| Field | +Type | +Description | +
|---|---|---|
account |
+String | +The owner of the channel, as an Address. | +
amount |
+String | +The total amount of XRP, in drops allocated to this channel. | +
balance |
+String | +The total amount of XRP, in drops, paid out from this channel, as of the ledger version used. (You can calculate the amount of XRP remaining in the channel by subtracting balance from amount.) |
+
channel_id |
+String | +A unique ID for this channel, as a 64-character hexadecimal string. This is also the index of the channel in the ledger's state data. | +
destination_account |
+String | +the destination account of the channel, as an Address. Only this account can receive the XRP in the channel while it remains open. | +
public_key |
+String | +(May be omitted) The public key for the payment channel in base58 format. Signed claims against this channel must be redeemed with the matching key pair. | +
public_key_hex |
+String | +(May be omitted) The public key for the payment channel in hexadecimal format, if one was specified at channel creation. Signed claims against this channel must be redeemed with the matching key pair. | +
settle_delay |
+Unsigned Integer | +The number of seconds the payment channel must remain open after the owner of the channel requests to close it. | +
expiration |
+Unsigned Integer | +(May be omitted) Time, in seconds since the Ripple Epoch, when this channel is set to expire. This expiration date is mutable. If this is before the close time of the most recent validated ledger, the channel is expired. | +
cancel_after |
+Unsigned Integer | +(May be omitted) Time, in seconds since the Ripple Epoch, of this channel's immutable expiration, if one was specified at channel creation. If this is before the close time of the most recent validated ledger, the channel is expired. | +
source_tag |
+Unsigned Integer | +(May be omitted) A 32-bit unsigned integer to use as a source tag for payments through this payment channel, if one was specified at channel creation. This indicates the payment channel's originator or other purpose at the source account. Conventionally, if you bounce payments from this channel, you should specify this value in the DestinationTag of the return payment. |
+
destination_tag |
+Unsigned Integer | +(May be omitted) A 32-bit unsigned integer to use as a destination tag for payments through this channel, if one was specified at channel creation. This indicates the payment channel's beneficiary or other purpose at the destination account. | +
invalidParams - One or more fields are specified incorrectly, or one or more required fields are missing.actNotFound - The address specified in the account field of the request does not correspond to an account in the ledger.lgrNotFound - The ledger specified by the ledger_hash or ledger_index does not exist, or it does exist but the server does not have it.The account_info command retrieves information about an account, its activity, and its XRP balance. All information retrieved is relative to a particular version of the ledger.
An example of an account_info request:
-{
+{
"id": 2,
"command": "account_info",
"account": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
@@ -1073,7 +1333,7 @@ Null method
}
-{
+{
"method": "account_info",
"params": [
{
@@ -1086,7 +1346,7 @@ Null method
}
-#Syntax: account_info account [ledger_index|ledger_hash] [strict]
+#Syntax: account_info account [ledger_index|ledger_hash] [strict]
rippled account_info r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 true
@@ -1114,31 +1374,31 @@ rippled account_info r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 true
ledger_hash
String
-(Optional) A 20-byte hex string for the ledger version to use. (See Specifying a Ledger)
+(Optional) A 20-byte hex string for the ledger version to use. (See Specifying a Ledger)
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)
+(Optional) The sequence number of the ledger to use, or a shortcut string to choose a ledger automatically. (See Specifying a Ledger)
queue
Boolean
-(Optional) If true, and the FeeEscalation amendment is enabled, also returns stats about queued transactions associated with this account. Can only be used when querying for the data from the current open ledger. 
+(Optional) If true, and the FeeEscalation amendment is enabled, also returns stats about queued transactions associated with this account. Can only be used when querying for the data from the current open ledger. 
signer_lists
Boolean
-(Optional) If true, and the MultiSign amendment is enabled, also returns any SignerList objects associated with this account. 
+(Optional) If true, and the MultiSign amendment is enabled, also returns any SignerList objects associated with this account. 
The following fields are deprecated and should not be provided: ident, ledger.
-Response Format
+Response Format
An example of a successful response:
-
+
-{
+{
"id": 5,
"status": "success",
"type": "response",
@@ -1185,7 +1445,7 @@ rippled account_info r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 true
}
-{
+{
"result": {
"account_data": {
"Account": "rG1QQv2nh2gr7RCZ1P8YYcBUKCCN633jCn",
@@ -1351,7 +1611,7 @@ rippled account_info r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 true
-Possible Errors
+Possible Errors
- Any of the universal error types.
invalidParams - One or more fields are specified incorrectly, or one or more required fields are missing. For example, the request specified queue as true but specified a ledger_index that is not the current open ledger.
@@ -1360,12 +1620,12 @@ rippled account_info r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 true
account_lines
-The account_lines method returns information about the account's lines of trust, including balances in all non-XRP currencies and assets. All information retrieved is relative to a particular version of the ledger.
-Request Format
+The account_lines method returns information about an account's trust lines, including balances in all non-XRP currencies and assets. All information retrieved is relative to a particular version of the ledger.
+Request Format
An example of the request format:
-
+
-{
+{
"id": 1,
"command": "account_lines",
"account": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
@@ -1373,7 +1633,7 @@ rippled account_info r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 true
}
-{
+{
"method": "account_lines",
"params": [
{
@@ -1403,36 +1663,36 @@ rippled account_info r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 true
ledger_hash
String
-(Optional) A 20-byte hex string for the ledger version to use. (See Specifying a Ledger)
+(Optional) A 20-byte hex string for the ledger version to use. (See Specifying a Ledger)
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)
+(Optional) The sequence number of the ledger to use, or a shortcut string to choose a ledger automatically. (See Specifying a Ledger)
peer
String
-(Optional) The Address of a second account. If provided, show only lines of trust connecting the two accounts.
+(Optional) The Address of a second account. If provided, show only lines of trust connecting the two accounts.
limit
Integer
-(Optional, default varies) Limit the number of transactions to retrieve. The server is not required to honor this value. Cannot be smaller than 10 or larger than 400. 
+(Optional, default varies) Limit the number of transactions to retrieve. The server is not required to honor this value. Must be within the inclusive range 10 to 400. 
marker
(Not Specified)
-(Optional) Value from a previous response to specify where to resume retrieving data from. 
+(Optional) Value from a previous paginated response. Resume retrieving data where that response left off. 
The following parameters are deprecated and may be removed without further notice: ledger and peer_index.
-Response Format
+Response Format
An example of a successful response:
-
+
-{
+{
"id": 1,
"status": "success",
"type": "response",
@@ -1474,7 +1734,7 @@ rippled account_info r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 true
}
-200 OK
+200 OK
{
"result": {
"account": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
@@ -1515,7 +1775,7 @@ rippled account_info r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 true
}
-The response follows the standard format, with a successful result containing the address of the account and an array of trust-line objects. Specifically, the result object contains the following fields:
+The response follows the standard format, with a successful result containing the address of the account and an array of trust line objects. Specifically, the result object contains the following fields:
@@ -1533,7 +1793,7 @@ rippled account_info r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 true
lines
Array
-Array of trust-line objects, as described below. If the number of trust-lines is large, only returns up to the limit at a time.
+Array of trust line objects, as described below. If the number of trust lines is large, only returns up to the limit at a time.
ledger_current_index
@@ -1553,11 +1813,11 @@ rippled account_info r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 true
marker
(Not Specified)
-Server-defined value. Pass this to the next call to resume where this call left off. Omitted when there are no additional pages after this one. 
+Server-defined value indicating the response is paginated. Pass this to the next call to resume where this call left off. Omitted when there are no additional pages after this one. 
-Each trust-line object has some combination of the following fields:
+Each trust line object has some combination of the following fields:
@@ -1624,7 +1884,7 @@ rippled account_info r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 true
-Possible Errors
+Possible Errors
- Any of the universal error types.
invalidParams - One or more fields are specified incorrectly, or one or more required fields are missing.
@@ -1635,11 +1895,11 @@ rippled account_info r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 true
account_offers
The account_offers method retrieves a list of offers made by a given account that are outstanding as of a particular ledger version.
-Request Format
+Request Format
An example of the request format:
-
+
-{
+{
"id": 2,
"command": "account_offers",
"account": "rpP2JgiMyTF5jR5hLG3xHCPi1knBb1v9cM",
@@ -1647,7 +1907,7 @@ rippled account_info r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 true
}
-{
+{
"method": "account_offers",
"params": [
{
@@ -1658,7 +1918,7 @@ rippled account_info r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 true
}
-#Syntax: account_offers account [ledger_index]
+#Syntax: account_offers account [ledger_index]
rippled account_offers r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 current
@@ -1686,31 +1946,31 @@ rippled account_offers r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 current
ledger_hash
String
-(Optional) A 20-byte hex string identifying the ledger version to use.
+(Optional) A 20-byte hex string identifying the ledger version to use.
ledger_index
-(Optional) Ledger Index
+(Optional) Ledger Index
(Optional, defaults to current) The sequence number of the ledger to use, or "current", "closed", or "validated" to select a ledger dynamically. (See Specifying Ledgers)
limit
Integer
-(Optional, default varies) Limit the number of transactions to retrieve. The server is not required to honor this value. Cannot be lower than 10 or higher than 400. 
+(Optional, default varies) Limit the number of transactions to retrieve. The server is not required to honor this value. Must be within the inclusive range 10 to 400. 
marker
(Not Specified)
-Value from a previous response value to specify where to resume retrieving data from. 
+Value from a previous paginated response. Resume retrieving data where that response left off. 
The following parameter is deprecated and may be removed without further notice: ledger.
-Response Format
+Response Format
An example of a successful response:
-
+
-{
+{
"id": 9,
"status": "success",
"type": "response",
@@ -1747,7 +2007,7 @@ rippled account_offers r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 current
}
-200 OK
+200 OK
{
"result": {
"account": "rpP2JgiMyTF5jR5hLG3xHCPi1knBb1v9cM",
@@ -1831,7 +2091,7 @@ rippled account_offers r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 current
marker
(Not Specified)
-Server-defined value. Pass this to the next call to resume where this call left off. Omitted when there are no pages of information after this one. 
+Server-defined value indicating the response is paginated. Pass this to the next call to resume where this call left off. Omitted when there are no pages of information after this one. 
@@ -1877,7 +2137,7 @@ rippled account_offers r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 current
-Possible Errors
+Possible Errors
- Any of the universal error types.
invalidParams - One or more fields are specified incorrectly, or one or more required fields are missing.
@@ -1896,11 +2156,11 @@ rippled account_offers r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 current
- Escrow nodes for held payments that have not yet been executed or canceled.
- PayChannel nodes for open payment channels.
-Request Format
+Request Format
An example of the request format:
-
+
-{
+{
"id": 1,
"command": "account_objects",
"account": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
@@ -1910,7 +2170,7 @@ rippled account_offers r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 current
}
-{
+{
"method": "account_objects",
"params": [
{
@@ -1923,7 +2183,7 @@ rippled account_offers r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 current
}
-#Syntax: account_objects <account> [<ledger>]
+#Syntax: account_objects <account> [<ledger>]
rippled account_objects r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 validated
@@ -1945,35 +2205,35 @@ rippled account_objects r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 validated
type
String
-(Optional) If included, filter results to include only this type of ledger node. Valid types include state (trust lines), offer (offers), and ticket (part of the forthcoming signing process).
+(Optional) If included, filter results to include only this type of ledger node. Valid types include state (trust lines), offer (offers), and ticket (part of the forthcoming signing process).
ledger_hash
String
-(Optional) A 20-byte hex string for the ledger version to use. (See Specifying a Ledger)
+(Optional) A 20-byte hex string for the ledger version to use. (See Specifying a Ledger)
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)
+(Optional) The sequence number of the ledger to use, or a shortcut string to choose a ledger automatically. (See Specifying a Ledger)
limit
Unsigned Integer
-(Optional) The maximum number of objects to include in the results. Cannot be less than 10 or higher than 400 on non-admin connections. Defaults to 200.
+(Optional) The maximum number of objects to include in the results. Must be within the inclusive range 10 to 400 on non-admin connections. Defaults to 200.
marker
(Not Specified)
-(Optional) Value from a previous response value to specify where to resume retrieving data from.
+(Optional) Value from a previous paginated response. Resume retrieving data where that response left off.
-Response Format
+Response Format
An example of a successful response:
-
+
-{
+{
"id": 8,
"status": "success",
"type": "response",
@@ -2230,7 +2490,7 @@ rippled account_objects r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 validated
}
-200 OK
+200 OK
{
"result": {
"account": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
@@ -2529,7 +2789,7 @@ rippled account_objects r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 validated
marker
(Not Specified)
-Server-defined value. Pass this to the next call to resume where this call left off. Omitted when there are no additional pages after this one.
+Server-defined value indicating the response is paginated. Pass this to the next call to resume where this call left off. Omitted when there are no additional pages after this one.
validated
@@ -2538,7 +2798,7 @@ rippled account_objects r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 validated
-Possible Errors
+Possible Errors
- Any of the universal error types.
invalidParams - One or more fields are specified incorrectly, or one or more required fields are missing.
@@ -2548,11 +2808,11 @@ rippled account_objects r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 validated
account_tx
The account_tx method retrieves a list of transactions that involved the specified account.
-Request Format
+Request Format
An example of the request format:
-
+
-{
+{
"id": 2,
"command": "account_tx",
"account": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
@@ -2565,7 +2825,7 @@ rippled account_objects r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 validated
}
-{
+{
"method": "account_tx",
"params": [
{
@@ -2583,7 +2843,7 @@ rippled account_objects r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 validated
}
-#Syntax account_tx account [ledger_index_min [ledger_index_max [limit]]] [binary] [count] [forward]
+#Syntax account_tx account [ledger_index_min [ledger_index_max [limit]]] [binary] [count] [forward]
rippled account_tx r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 -1 -1 2 false false false
@@ -2616,12 +2876,12 @@ rippled account_tx r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 -1 -1 2 false false false
ledger_hash
String
-(Optional) Use instead of ledger_index_min and ledger_index_max to look for transactions from a single ledger only. (See Specifying a Ledger)
+(Optional) Use instead of ledger_index_min and ledger_index_max to look for transactions from a single ledger only. (See Specifying a Ledger)
ledger_index
String or Unsigned Integer
-(Optional) Use instead of ledger_index_min and ledger_index_max to look for transactions from a single ledger only. (See Specifying a Ledger)
+(Optional) Use instead of ledger_index_min and ledger_index_max to look for transactions from a single ledger only. (See Specifying a Ledger)
binary
@@ -2641,7 +2901,7 @@ rippled account_tx r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59 -1 -1 2 false false false
marker
(Not Specified)
-Value from a previous response value to specify where to resume retrieving data from. This value is stable even if there is a change in the server's range of available ledgers.
+Value from a previous paginated response. Resume retrieving data where that response left off. This value is stable even if there is a change in the server's range of available ledgers.
@@ -2650,11 +2910,11 @@ There is also a deprecated legacy variation of the account_tx metho
Iterating over queried data
As with other paginated methods, you can use the marker field to return multiple pages of data.
In the time between requests, "ledger_index_min": -1 and "ledger_index_max": -1 may change to refer to different ledger versions than they did before. The marker field can safely paginate even if there are changes in the ledger range from the request, so long as the marker does not indicate a point outside the range of ledgers specified in the request.
-Response Format
+Response Format
An example of a successful response:
-
+
-{
+{
"id": 2,
"status": "success",
"type": "response",
@@ -2888,7 +3148,7 @@ There is also a deprecated legacy variation of the account_tx metho
}
-200 OK
+200 OK
{
"result": {
"account": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
@@ -3154,7 +3414,7 @@ There is also a deprecated legacy variation of the account_tx metho
marker
(Not Specified)
-Server-defined value. Pass this to the next call to resume where this call left off.
+Server-defined value indicating the response is paginated. Pass this to the next call to resume where this call left off.
offset
@@ -3211,7 +3471,7 @@ There is also a deprecated legacy variation of the account_tx metho
-Possible Errors
+Possible Errors
- Any of the universal error types.
invalidParams - One or more fields are specified incorrectly, or one or more required fields are missing.
@@ -3222,11 +3482,11 @@ There is also a deprecated legacy variation of the account_tx metho
noripple_check
The noripple_check command provides a quick way to check the status of the DefaultRipple field for an account and the NoRipple flag of its trust lines, compared with the recommended settings.
-Request Format
+Request Format
An example of the request format:
-
+
-{
+{
"id": 0,
"command": "noripple_check",
"account": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
@@ -3237,7 +3497,7 @@ There is also a deprecated legacy variation of the account_tx metho
}
-{
+{
"method": "noripple_check",
"params": [
{
@@ -3275,30 +3535,30 @@ There is also a deprecated legacy variation of the account_tx metho
transactions
Boolean
-(Optional) If true, include an array of suggested transactions, as JSON objects, that you can sign and submit to fix the problems. Defaults to false.
+(Optional) If true, include an array of suggested transactions, as JSON objects, that you can sign and submit to fix the problems. Defaults to false.
limit
Unsigned Integer
-(Optional) The maximum number of trust line problems to include in the results. Defaults to 300.
+(Optional) The maximum number of trust line problems to include in the results. Defaults to 300.
ledger_hash
String
-(Optional) A 20-byte hex string for the ledger version to use. (See Specifying a Ledger)
+(Optional) A 20-byte hex string for the ledger version to use. (See Specifying a Ledger)
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)
+(Optional) The sequence number of the ledger to use, or a shortcut string to choose a ledger automatically. (See Specifying a Ledger)
-Response Format
+Response Format
An example of a successful response:
-
+
-{
+{
"id": 0,
"status": "success",
"type": "response",
@@ -3347,7 +3607,7 @@ There is also a deprecated legacy variation of the account_tx metho
}
-200 OK
+200 OK
{
"result": {
"ledger_current_index": 14380381,
@@ -3422,7 +3682,7 @@ There is also a deprecated legacy variation of the account_tx metho
-Possible Errors
+Possible Errors
- Any of the universal error types.
invalidParams - One or more fields are specified incorrectly, or one or more required fields are missing.
@@ -3432,11 +3692,11 @@ There is also a deprecated legacy variation of the account_tx metho
gateway_balances
The gateway_balances command calculates the total balances issued by a given account, optionally excluding amounts held by operational addresses. 
-Request Format
+Request Format
An example of the request format:
-
+
-{
+{
"id": "example_gateway_balances_1",
"command": "gateway_balances",
"account": "rMwjYedjc7qqtKYVLiAccJSmCwih4LnE2q",
@@ -3446,7 +3706,7 @@ There is also a deprecated legacy variation of the account_tx metho
}
-{
+{
"method": "gateway_balances",
"params": [
{
@@ -3480,7 +3740,7 @@ There is also a deprecated legacy variation of the account_tx metho
strict
Boolean
-(Optional) If true, only accept an address or public key for the account parameter. Defaults to false.
+(Optional) If true, only accept an address or public key for the account parameter. Defaults to false.
hotwallet
@@ -3490,20 +3750,20 @@ There is also a deprecated legacy variation of the account_tx metho
ledger_hash
String
-(Optional) A 20-byte hex string for the ledger version to use. (See Specifying a Ledger)
+(Optional) A 20-byte hex string for the ledger version to use. (See Specifying a Ledger)
ledger_index
String or Unsigned Integer
-(Optional) The sequence number of the ledger version to use, or a shortcut string to choose a ledger automatically. (See Specifying a Ledger)
+(Optional) The sequence number of the ledger version to use, or a shortcut string to choose a ledger automatically. (See Specifying a Ledger)
-Response Format
+Response Format
An example of a successful response:
-
+
-{
+{
"id": 3,
"status": "success",
"type": "response",
@@ -3568,7 +3828,7 @@ There is also a deprecated legacy variation of the account_tx metho
}
-200 OK
+200 OK
{
"result": {
"account": "rMwjYedjc7qqtKYVLiAccJSmCwih4LnE2q",
@@ -3675,7 +3935,7 @@ There is also a deprecated legacy variation of the account_tx metho
-Possible Errors
+Possible Errors
- Any of the universal error types.
invalidParams - One or more fields are specified incorrectly, or one or more required fields are missing.
@@ -3688,24 +3948,24 @@ There is also a deprecated legacy variation of the account_tx metho
Use the wallet_propose method to generate a key pair and Ripple address. This command only generates keys, and does not affect the Ripple Consensus Ledger itself in any way. To become a funded address stored in the ledger, the address must receive a Payment transaction that provides enough XRP to meet the reserve requirement.
The wallet_propose request is an admin command that cannot be run by unprivileged users! (This command is restricted to protect against people sniffing network traffic for account secrets, since admin commands are not usually transmitted over the outside network.)
-Request Format
+Request Format
An example of the request format:
-- WebSocket (with key type)
- WebSocket (no key type)
- JSON-RPC (with key type)
- JSON-RPC (no key type)
- Commandline
+- WebSocket (with key type)
- WebSocket (no key type)
- JSON-RPC (with key type)
- JSON-RPC (no key type)
- Commandline
-{
+{
"command": "wallet_propose",
"seed": "snoPBrXtMeMyMHUVTgbuqAfg1SUTb",
"key_type": "secp256k1"
}
-{
+{
"command": "wallet_propose",
"passphrase": "masterpassphrase"
}
-{
+{
"method": "wallet_propose",
"params": [
{
@@ -3716,7 +3976,7 @@ There is also a deprecated legacy variation of the account_tx metho
}
-{
+{
"method": "wallet_propose",
"params": [
{
@@ -3726,7 +3986,7 @@ There is also a deprecated legacy variation of the account_tx metho
}
-#Syntax: wallet_propose [passphrase]
+#Syntax: wallet_propose [passphrase]
rippled wallet_propose masterpassphrase
@@ -3748,17 +4008,17 @@ rippled wallet_propose masterpassphrase
passphrase
String
-(Optional) Generate a key pair and address from this seed value. This value can be formatted in hexadecimal, base58, RFC-1751, or as an arbitrary string. Cannot be used with seed or seed_hex.
+(Optional) Generate a key pair and address from this seed value. This value can be formatted in hexadecimal, base58, RFC-1751, or as an arbitrary string. Cannot be used with seed or seed_hex.
seed
String
-(Optional) Generate the key pair and address from this base58-encoded seed value. Cannot be used with passphrase or seed_hex.
+(Optional) Generate the key pair and address from this base58-encoded seed value. Cannot be used with passphrase or seed_hex.
seed_hex
String
-(Optional) Generate the key pair and address from this seed value in hexadecimal format. Cannot be used with passphrase or seed.
+(Optional) Generate the key pair and address from this seed value in hexadecimal format. Cannot be used with passphrase or seed.
@@ -3778,11 +4038,11 @@ rippled wallet_propose masterpassphrase
- As a 128-bit hexadecimal string. Example:
DEDCE9CE67B451D852FD4E846FCDE31C.
- An arbitrary string to use as a seed value. For example:
masterpassphrase.
-Response Format
+Response Format
An example of a successful response:
-
+
-{
+{
"id": 2,
"status": "success",
"type": "response",
@@ -3798,7 +4058,7 @@ rippled wallet_propose masterpassphrase
}
-{
+{
"result": {
"account_id": "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"key_type": "secp256k1",
@@ -3812,7 +4072,7 @@ rippled wallet_propose masterpassphrase
}
-Loading: "/etc/rippled.cfg"
+Loading: "/etc/rippled.cfg"
Connecting to 127.0.0.1:5005
{
"result" : {
@@ -3876,7 +4136,7 @@ Connecting to 127.0.0.1:5005
The key generated by this method can also be used as a regular key for an account if you use the SetRegularKey transaction type to do so.
-Possible Errors
+Possible Errors
- Any of the universal error types.
invalidParams - One or more fields are specified incorrectly.
@@ -3887,11 +4147,11 @@ Connecting to 127.0.0.1:5005
ledger
Retrieve information about the public ledger.
-Request Format
+Request Format
An example of the request format:
-
+
-{
+{
"id": 14,
"command": "ledger",
"ledger_index": "validated",
@@ -3903,7 +4163,7 @@ Connecting to 127.0.0.1:5005
}
-{
+{
"method": "ledger",
"params": [
{
@@ -3918,7 +4178,7 @@ Connecting to 127.0.0.1:5005
}
-#Syntax: ledger ledger_index|ledger_hash [full|tx]
+#Syntax: ledger ledger_index|ledger_hash [full|tx]
# "full" is equivalent to "full": true
# "tx" is equivalent to "transactions": true
rippled ledger current
@@ -3938,12 +4198,12 @@ rippled ledger current
ledger_hash
String
-(Optional) A 20-byte hex string for the ledger version to use. (See Specifying a Ledger).
+(Optional) A 20-byte hex string for the ledger version to use. (See Specifying a Ledger).
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)
+(Optional) The sequence number of the ledger to use, or a shortcut string to choose a ledger automatically. (See Specifying a Ledger)
full
@@ -3978,11 +4238,11 @@ rippled ledger current
The ledger field is deprecated and may be removed without further notice.
-Response Format
+Response Format
An example of a successful response:
-
-Possible Errors
+Possible Errors
- Any of the universal error types.
invalidParams - One or more fields are specified incorrectly, or one or more required fields are missing.
@@ -4156,17 +4416,17 @@ rippled ledger current
ledger_closed
The ledger_closed method returns the unique identifiers of the most recently closed ledger. (This ledger is not necessarily validated and immutable yet.)
-Request Format
+Request Format
An example of the request format:
-
+
-{
+{
"id": 2,
"command": "ledger_closed"
}
-{
+{
"method": "ledger_closed",
"params": [
{}
@@ -4174,17 +4434,17 @@ rippled ledger current
}
-#Syntax: ledger_closed
+#Syntax: ledger_closed
rippled ledger_closed
This method accepts no parameters.
-Response Format
+Response Format
An example of a successful response:
-
+
-{
+{
"id": 1,
"status": "success",
"type": "response",
@@ -4195,7 +4455,7 @@ rippled ledger_closed
}
-200 OK
+200 OK
{
"result": {
"ledger_hash": "8B5A0C5F6B198254A6E411AF55C29EE40AA86251D2E78DD0BB17647047FA9C24",
@@ -4227,24 +4487,24 @@ rippled ledger_closed
-Possible Errors
+Possible Errors
- Any of the universal error types.
ledger_current
The ledger_current method returns the unique identifiers of the current in-progress ledger. This command is mostly useful for testing, because the ledger returned is still in flux.
-Request Format
+Request Format
An example of the request format:
-
+
-{
+{
"id": 2,
"command": "ledger_current"
}
-{
+{
"method": "ledger_current",
"params": [
{}
@@ -4252,17 +4512,17 @@ rippled ledger_closed
}
-#Syntax: ledger_current
+#Syntax: ledger_current
rippled ledger_current
The request contains no parameters.
-Response Format
+Response Format
An example of a successful response:
-
+
-{
+{
"id": 2,
"status": "success",
"type": "response",
@@ -4272,7 +4532,7 @@ rippled ledger_current
}
-200 OK
+200 OK
{
"result": {
"ledger_current_index": 8696233,
@@ -4299,18 +4559,18 @@ rippled ledger_current
A ledger_hash field is not provided, because the hash of the current ledger is constantly changing along with its contents.
-Possible Errors
+Possible Errors
- Any of the universal error types.
ledger_data
The ledger_data method retrieves contents of the specified ledger. You can iterate through several calls to retrieve the entire contents of a single ledger version.
-Request Format
+Request Format
An example of the request format:
-
+
-{
+{
"id": 2,
"ledger_hash": "842B57C1CC0613299A686D3E9F310EC0422C84D3911E5056389AA7E5808A93C8",
"command": "ledger_data",
@@ -4319,7 +4579,7 @@ rippled ledger_current
}
-{
+{
"method": "ledger_data",
"params": [
{
@@ -4350,12 +4610,12 @@ rippled ledger_current
ledger_hash
String
-(Optional) A 20-byte hex string for the ledger version to use. (See Specifying a Ledger)
+(Optional) A 20-byte hex string for the ledger version to use. (See Specifying a Ledger)
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)
+(Optional) The sequence number of the ledger to use, or a shortcut string to choose a ledger automatically. (See Specifying a Ledger)
binary
@@ -4370,16 +4630,16 @@ rippled ledger_current
marker
(Not Specified)
-Value from a previous response value to specify where to resume retrieving data from.
+Value from a previous paginated response. Resume retrieving data where that response left off.
The ledger field is deprecated and may be removed without further notice.
-Response Format
+Response Format
An example of a successful response:
-
+
-{
+{
"id": 2,
"result": {
"ledger_hash": "842B57C1CC0613299A686D3E9F310EC0422C84D3911E5056389AA7E5808A93C8",
@@ -4413,7 +4673,7 @@ rippled ledger_current
}
-{
+