Skip to main content

ledger_closed RPC Method

Retrieves the distinct identifiers of the most recently closed ledger (This ledger is not necessarily validated and immutable yet)

Updated on
Oct 4, 2023

ledger_closed RPC Method

Parameters

This method does not accept any parameters

Returns

result
object
A result object which contains the following fields:
ledger_hash
string
A 20-character hexadecimal string representing the ledger version
ledger_index
integer
The ledger index of the ledger to use
status
string
It indicates the status of the response
warnings
array
An array of warning objects, each containing the following fields:
id
integer
The ID of the warning
message
string
The warning message
Request
1
curl https://docs-demo.xrp-mainnet.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{
5
"method": "ledger_closed",
6
"params": [{}],"id":1,"jsonrpc":"2.0"}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free