xrp

XRP (XRP)

Method: POST ledger_closed

dropdown

POST ledger_closed

ledger_closed 方法返回最近关闭的分类帐的唯一标识符。

(这个分类帐不一定是经过验证和不可变的。)

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"
    }
}