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

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    adminSearchCache: ServiceCache<CachedLedgerAccountAdminSearch>

    This service's own cross-customer admin search cache (read + write).

    consumerSearchCache: ServiceCache<CachedLedgerAccountSearch>

    Buster over the ledger-account-consumer-search namespace owned by LedgerAccountQueryService. Admin writes and the Helius on-chain balance webhook bypass LedgerAccountQueryService, so they must also bust the consumer cache the customer dashboard reads — same namespace + cluster busts cross-process.

    Methods

    • Get the given ledger account for the given customer

      Parameters

      • args: { id: string }

      Returns Promise<
          {
              ok: true;
              value: | {
                  address: Address;
                  balance: BigNumber;
                  createdAt: Date;
                  id: string;
                  name: string;
                  notes?: string;
                  paymentInstrumentId?: string;
                  permissions: "ALL"
                  | "ADMIN";
                  referenceId?: string;
                  tokenAccounts: Record<"MOVEUSD", { address: Address }>;
                  updatedAt: Date;
                  visibility: "PRIVATE" | "PUBLIC";
              } & {
                  customerId: string;
                  customerName: string;
                  customerOrganizationId: string;
                  entityDisplayName: string;
                  entityId: string;
                  entityReferenceId: string
                  | null;
                  entityType: "IDENTITY" | "ORGANIZATION";
              }
              | null;
          },
      >