xrp

XRP (XRP)

Method: POST noripple_check

dropdown

POST noripple_check

The noripple_check command provides a quick way to check the status of the Default Ripple field for an account and the No Ripple flag of its trust lines, compared with the recommended settings.

Parameters

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.

role - String

Whether the address refers to a gateway or user.

Recommendations depend on the role of the account.

Issuers must have Default Ripple enabled and must disable No Ripple on all trust lines.

Users should have Default Ripple disabled, and should enable No Ripple on all trust lines.

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.

limit - Integer

(Optional, default varies) Limit the number of trust lines to retrieve.

The server is not required to honor this value.

Must be within the inclusive range 10 to 400.

ledger_hash - String

(Optional) A 20-byte hex string for the ledger version to use.

ledger_index - String or Unsigned Integer

(Optional) The ledger index of the ledger to use, or a shortcut string to choose a ledger automatically.

Request

curl --location --request POST 'https://xrp.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "noripple_check",
"params": [{"account": "rN7n7otQDd6FczFgLdSqtcsAUxDkw6fzRH", "role": "gateway"}],
"id": "getblock.io"}'


Response

{
    "result": {
        "ledger_current_index": 63631836,
        "problems": [
            "You should immediately set your default ripple flag",
            "You should clear the no ripple flag on your 0158415500000000C1F76FF6ECB0BAC600000000 line to rrh7rf1gV2pXAoqA8oYbpHd8TKv5ZQeo67"
        ],
        "status": "success",
        "validated": false
    }
}