Skip to main content

getLedgerEntries RPC Method

Returns current ledger entry values, including contract data and code.

Updated on
Feb 21, 2024

Parameters

keys
array
REQUIRED

An array containing the keys of the ledger entries you want to retrieve (All keys are serialized in base64)

Returns

result
object

The result object which contains the following fields:

entries
array

An array containing the specified ledger entries:

key
string

The key of the ledger entry serialized in a base64

xdr
string

The current value of the given ledger entry serialized in a base64

lastModifiedLedgerSeq
string

The ledger number of the last time this entry was updated

extensionXdr
string

The extension data for the ledger entry serialized in base64 XDR format

extensionJson
object

The extension data for the ledger entry in JSON format

latestLedger
string

The most recent ledger observed by the node at the time of generating this response

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free