Skip to main content

ledger_current RPC Method

Returns the unique identifiers of the current in-progress ledger

Updated on
Oct 4, 2023

ledger_current RPC Method

Parameters

This method does not accept any parameters

Returns

result
object
A result object which contains the following fields:
ledger_current_index
integer
The index of the current ledger
status
string
The status of the request
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_current",
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