noripple_check - XRPL

Example code for the noripple_check JSON RPC method. Complete guide to using noripple_check JSON-RPC in the GetBlock Web3 documentation.

This method provides a quick way to check the status of the NoRipple flag on an account's trust lines, which may be useful for token issuers.

Parameters

Parameter
Type
Required
Description

account

string

Yes

Account to check

role

string

Yes

"gateway" or "user"

transactions

boolean

No

Include suggested txs

limit

number

No

Maximum problems

ledger_hash

string

No

Ledger hash

ledger_index

string/number

No

Ledger index

Request Example

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",
        "transactions": true
    }],
    "id": "getblock.io"
}'

Response Example

Response Parameters

Parameter
Type
Description

problems

array

Issues found

transactions

array

Suggested fixes

Use Cases

circle-info
  • Gateway compliance

  • Trust line auditing

  • Token issuer checks

Error Handling

chevron-rightactNotFoundhashtag

Account not found

chevron-rightinvalidParamshashtag

Invalid parameters

SDK Integration

Last updated

Was this helpful?