xrp

XRP (XRP)

Method: POST ledger_closed

dropdown

POST ledger_closed

The ledger_closed method returns the unique identifiers of the most recently closed ledger.

(This ledger is not necessarily validated and immutable yet.)

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


Response

{
    "result": {
        "ledger_hash": "3A0B41C31B13436610C5961E2C914529CAD3CCC4A7859ED6AABFCD0700847BC1",
        "ledger_index": 63632029,
        "status": "success"
    }
}
GetBlock.io

Get access to 40+ blockchain nodes right now! GetBlock provides a fast and reliable API connection to full nodes from many leading blockchains.

Subscribe

Email is invalid

2019 - 2021 GetBlock