account_lines or account_offers), or when you want the raw form.
This method will use 40 Compute Units.
Reference: Here
Parameters
account(string, required) Get ledger entries associated with this account.deletion_blockers_only(boolean, optional) Iftrue, only return ledger entries that would block this account from being deleted. 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.limit(number, optional) The maximum number of ledger entries to include in the results. Must be within the inclusive range 10 to 400. The default is 200.marker(marker, optional) Value from a previous paginated response. Resume retrieving data where that response left off.sponsored(boolean, optional) Iftrue, return only sponsored ledger entries; iffalse, only entries that are not sponsored. Requires the Sponsor amendment.type(string, optional) Filter results to a specific type of ledger entry, such ascheck,escrow,nft_offer,offer,payment_channel,signer_list,state(trust line) orticket.
Returns
account(string) The account this request corresponds to.account_objects(array) Array of ledger entries in this account’s owner directory, each in its raw ledger format.ledger_hash(string) The identifying hash of the ledger that was used to generate this response.ledger_index(number) The ledger index of the ledger that was used to generate this response.ledger_current_index(number) The ledger index of the open ledger, if used.limit(number) The limit that was used in this request, if any.marker(marker) Server-defined value indicating the response is paginated. Omitted when there are no additional pages.validated(boolean) Iftrue, the information comes from a validated ledger version.
{"id":1,"command":"account_objects","account":"rMxCKbEDwqr76QuheSUMdEGf4B9xJ8m5De","ledger_index":"validated","limit":10} to wss://mainnet.xrpl.validationcloud.io/v1/<YOUR_API_KEY_HERE>.