xrp

XRP (XRP)

Method: POST ledger_entry

dropdown
POST

ledger_entry

The ledger_entry method returns a single ledger object from the XRP Ledger in its raw format.

See ledger format for information on the different types of objects you can retrieve.

Parameters

None - None

None

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


Response

{
    "result": {
        "error": "unknownOption",
        "ledger_current_index": 63632030,
        "request": {
            "command": "ledger_entry"
        },
        "status": "error",
        "validated": false
    }
}