index, account_root, amm, check, credential, deposit_preauth, did, directory, escrow, mptoken, mpt_issuance, nft_page, nft_offer, offer, oracle, payment_channel, permissioned_domain, ripple_state, signer_list, ticket or vault).
This method will use 20 Compute Units.
Reference: Here
Parameters
binary(boolean, optional) Iftrue, return the entry’s contents as a hex string in the XRP Ledger’s binary format. The default isfalse.ledger_hash(string, optional) The unique hash of the ledger version to use.ledger_index(number or string, optional) The ledger index of the ledger to use, or a shortcut string such asvalidated,closedorcurrent.include_deleted(boolean, optional) Clio only. Iftrueand the queried object has been deleted, return its data as it was prior to deletion.index(string) The ledger entry ID of a single entry to retrieve, as a 64-character hexadecimal string.account_root(string) The classic address of the AccountRoot entry to retrieve.amm(object or string) The AMM entry to retrieve, as a ledger entry ID or an object withassetandasset2.offer(object or string) The Offer entry, as a ledger entry ID or an object withaccountandseq.oracle(object) The Oracle entry, as an object withaccountandoracle_document_id.ripple_state(object) The trust line, as an object withaccounts(2-length array) andcurrency.payment_channel,check,nft_page,nft_offer,signer_list,mpt_issuance,vault(string) The ledger entry ID of the entry to retrieve.escrow,ticket,deposit_preauth,credential,directory,mptoken,permissioned_domain,did(object or string) See the reference for the sub-fields of each selector.
Returns
index(string) The ledger entry ID of this ledger entry.ledger_index(unsigned integer) The ledger index of the ledger that was used when retrieving this data.node(object) Omitted ifbinaryistrue. The data of this ledger entry, according to the ledger format.node_binary(string) Omitted unlessbinaryistrue. The binary representation of the ledger entry, as hexadecimal.deleted_ledger_index(unsigned integer) Clio only, returned ifinclude_deletedis set. The ledger index where the entry was deleted.
{"id":1,"command":"ledger_entry","account_root":"rMxCKbEDwqr76QuheSUMdEGf4B9xJ8m5De","ledger_index":"validated"} to wss://mainnet.xrpl.validationcloud.io/v1/<YOUR_API_KEY_HERE>.