diff --git a/packages/xrpl/src/models/ledger/LedgerEntry.ts b/packages/xrpl/src/models/ledger/LedgerEntry.ts index 1f8f3ec32b..21b447fad1 100644 --- a/packages/xrpl/src/models/ledger/LedgerEntry.ts +++ b/packages/xrpl/src/models/ledger/LedgerEntry.ts @@ -45,6 +45,7 @@ type LedgerEntryFilter = | 'amm' | 'bridge' | 'check' + | 'credential' | 'deposit_preauth' | 'did' | 'directory' diff --git a/packages/xrpl/src/models/methods/depositAuthorized.ts b/packages/xrpl/src/models/methods/depositAuthorized.ts index 47952ad47a..4834bb003a 100644 --- a/packages/xrpl/src/models/methods/depositAuthorized.ts +++ b/packages/xrpl/src/models/methods/depositAuthorized.ts @@ -15,6 +15,12 @@ export interface DepositAuthorizedRequest source_account: string /** The recipient of a possible payment. */ destination_account: string + /** + * The object IDs of Credential objects. If this field is included, then the + * credential will be taken into account when analyzing whether the sender can send + * funds to the destination. + */ + credentials?: string[] } /** diff --git a/packages/xrpl/src/models/methods/ledgerEntry.ts b/packages/xrpl/src/models/methods/ledgerEntry.ts index d506525fe8..615195d19c 100644 --- a/packages/xrpl/src/models/methods/ledgerEntry.ts +++ b/packages/xrpl/src/models/methods/ledgerEntry.ts @@ -1,4 +1,4 @@ -import { Currency, XChainBridge } from '../common' +import { AuthorizeCredential, Currency, XChainBridge } from '../common' import { LedgerEntry } from '../ledger' import { BaseRequest, BaseResponse, LookupByLedgerRequest } from './baseMethod' @@ -67,6 +67,12 @@ export interface LedgerEntryRequest extends BaseRequest, LookupByLedgerRequest { /** The object ID of a Check object to retrieve. */ check?: string + /* Specify the Credential to retrieve. If a string, must be the ledger entry ID of + * the entry, as hexadecimal. If an object, requires subject, issuer, and + * credential_type sub-fields. + */ + credential?: AuthorizeCredential | string + /** * Specify a DepositPreauth object to retrieve. If a string, must be the * object ID of the DepositPreauth object, as hexadecimal. If an object,