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

    Transfers funds (currently only MOVEUSD) from a customer ledger account to the master CFX fee account

    Hierarchy (View Summary)

    Index
    db: B2bDatabase
    instance: (...args: []) => CustomerFeeTransferService = ...

    The process default: the master fee account and worker queue are read at each create.

    • Parameters

      • __namedParameters: Pick<
            CustomerFeeTransfer,
            "description"
            | "sourceAccountId"
            | "targetAccountId"
            | "type",
        > & { customerId: string; senderMessage?: string; sourceAmount: BigNumber }
        • customerId: string

          Source wallet customer ID

        • OptionalsenderMessage?: string
        • sourceAmount: BigNumber

      Returns Promise<
          | { ok: true; value: CustomerFeeTransfer }
          | {
              error:
                  | ServiceError<"INVALID_TRANSFER" | "ENTITY_INACTIVE">
                  | ServiceError<"INVALID_LEDGER_ACCOUNT", { ledgerAccountId: string }>;
              ok: false;
          },
      >