@cfxlabsinc/b2b-services
    Preparing search index...

    Type Alias LedgerAccountAdminSearchArgs

    LedgerAccountAdminSearchArgs: LedgerAccountSearchFilters & {
        addresses?: Address[];
        bankIds?: BankId[];
        blockTime?: Date;
        createdAt?: DbTimestampCriteria;
        customerIds?: Customer["id"][];
        entityIds?: Entity["id"][];
        ids?: LedgerAccount["id"][];
        orderBy?: (
            | DbOrderByCriterion<typeof ledgerAccountTable, "createdAt">
            | { direction: "ASC" | "DESC"; field: "balance" }
        )[];
        page?: number;
        pageSize?: number;
        q?: string;
        walletAddresses?: string[];
        walletIds?: SelectWallet["externalId"][];
    }

    Type Declaration

    • Optionaladdresses?: Address[]
    • OptionalbankIds?: BankId[]

      Accounts tied to any of these banks by an active deposit bank memo, an active virtual account or a transaction at the bank; any one is enough. Omitted spans every bank; an empty list matches nothing.

    • OptionalblockTime?: Date

      Value each account's balance as of this instant — the most recent on-chain post-balance at or before it — instead of the current balance. A balance-valuation modifier, not a row filter; omit for the latest balance.

    • OptionalcreatedAt?: DbTimestampCriteria
    • OptionalcustomerIds?: Customer["id"][]
    • OptionalentityIds?: Entity["id"][]
    • Optionalids?: LedgerAccount["id"][]
    • OptionalorderBy?: (
          | DbOrderByCriterion<typeof ledgerAccountTable, "createdAt">
          | { direction: "ASC" | "DESC"; field: "balance" }
      )[]
    • Optionalpage?: number

      Defaults to 1

    • OptionalpageSize?: number

      Defaults to 100

    • Optionalq?: string

      Case-insensitive substring match on account name or entity name. Whitespace-only values are a no-op.

    • OptionalwalletAddresses?: string[]

      Accounts whose wallet holds any of these addresses, on any chain.

    • OptionalwalletIds?: SelectWallet["externalId"][]

      Accounts on any of these wallets (wal_…).