Get desktop application:
View/edit binary Protocol Buffers messages
These methods are binary only methods for retrieiving arbitrary ledger state via gRPC. These methods are used by clio, but can also be used by any client that wants to extract ledger state in an efficient manner. They do not directly mimic the JSON equivalent methods.
Get a specific ledger, optionally including transactions and any modified, added or deleted ledger objects
If true, include transactions contained in this ledger
If true and transactions, include full transactions and metadata If false and transactions, include only transaction hashes
If true, include state map difference between this ledger and the previous ledger. This includes all added, modified or deleted ledger objects
If the request needs to be forwarded from a reporting node to a p2p node, the reporting node will set this field. Clients should not set this field.
Identifying string. If user is set, client_ip is not set, and request is coming from a secure_gateway host, then the client is not subject to resource controls
For every object in the diff, get the object's predecessor and successor in the state map. Only used if get_objects is also true.
Just the hashes
Full transactions and metadata
True if the ledger has been validated
State map difference between this ledger and the previous ledger
True if the skiplist object is included in ledger_objects
True if request was exempt from resource controls
True if the response contains the state map diff
True if the response contains key of objects adjacent to objects in state map diff
Successor information for book directories modified as part of this ledger
Get a specific ledger object from a specific ledger
Get a single ledger object
Key of the desired object
Ledger containing the object
If the request needs to be forwarded from a reporting node to a p2p node, the reporting node will set this field. Clients should not set this field.
Ledger containing the object. Will match the value specified in the request.
Iterate through all ledger objects in a specific ledger
Get ledger objects for a specific ledger. You can iterate through several calls to retrieve the entire contents of a single ledger version.
If set, only objects with a key greater than marker are returned. This can be used to pick up where a previous call left off. Set marker to the value of marker in the previous response.
If set, only objects with a key less than end_marker are returned
If the request needs to be forwarded from a reporting node to a p2p node, the reporting node will set this field. Clients should not set this field.
Identifying string. If user is set, client_ip is not set, and request is coming from a secure_gateway host, then the client is not subject to resource controls
Sequence of the ledger containing the returned ledger objects
Hash of the ledger containing the returned ledger objects
Ledger objects
Key to be passed into a subsequent call to continue iteration. If not set, there are no more objects left in the ledger, or no more objects with key less than end_marker (if end_marker was set in the request)
True if request was exempt from resource controls
Get all ledger objects that are different between the two specified ledgers. Note, this method has no JSON equivalent.
Get the state map difference between the two specified ledgers
If true, include the full ledger object. If false, only keys are included.
If the request needs to be forwarded from a reporting node to a p2p node, the reporting node will set this field. Clients should not set this field.
All ledger objects that were added, modified or deleted between base_ledger and desired_ledger
Successor information for book directories. The book base is (usually) not an actual object, yet we need to be able to ask for the successor to the book base.
Used in:
Base of the book in question
First book directory in the book. An empty value here means the entire book is deleted
Next field: 4
Used in:
, , , ,32 bytes
Next field: 4
Used in:
Next field: 3
Used in:
,Raw data of the ledger object. In GetLedgerResponse and GetLedgerDiffResponse, data will be empty if the object was deleted.
Key of the ledger object
Whether the object was created, modified or deleted
Key of the object preceding this object in the desired ledger
Key of the object succeeding this object in the desired ledger
Used in:
Used in:
, ,Used in:
Used in:
Used in: