@cfxlabsinc/b2b-services
    Preparing search index...
    LedgerAccountSearchArgs: LedgerAccountSearchFilters & {
        addresses?: Address[];
        createdAt?: DbTimestampCriteria;
        customerId: string;
        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"][];
    }

    Args for LedgerAccountQueryService.search.

    Type Declaration

    • Optionaladdresses?: Address[]
    • OptionalcreatedAt?: DbTimestampCriteria
    • customerId: string
    • 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 50

    • 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_…).