xrp

XRP (XRP)

Method: POST ledger_current

dropdown

POST 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.

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


Response

{
    "result": {
        "ledger_current_index": 63632030,
        "status": "success"
    }
}