xrp

XRP (XRP)

Method: POST json

dropdown
POST

json

The json method is a proxy to running other commands, and accepts the parameters for the command as a JSON value.

It is exclusive to the Commandline client, and intended for cases where the commandline syntax for specifying parameters is inadequate or undesirable.

Parameters

-

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": "json",
"params": [{}],
"id": "getblock.io"}'


Response

{
    "result": {
        "error": "unknownCmd",
        "error_code": 32,
        "error_message": "Unknown method.",
        "request": {
            "command": "json"
        },
        "status": "error"
    }
}