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

    Constructors

    Methods

    Constructors

    Methods

    • Parameters

      • args: {
            country: string;
            customerId: string;
            entityId: string;
            source: { amount: BigNumber };
            targetCurrency: string;
            withdrawalType: "bank" | "momo";
        }

      Returns Promise<
          | { error: ServiceError<string, object>; ok: false }
          | {
              ok: true;
              value: {
                  exchangeRate: BigNumber;
                  fees: Fees;
                  sourceAmount: BigNumber;
                  targetAmountAfterFees: BigNumber;
                  totalFees: BigNumber;
                  withdrawalType: "bank" | "momo";
              };
          },
      >