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

    Hierarchy

    • BlockchainWithdrawalQuoteQueryService
      • BlockchainWithdrawalQuoteService
    Index
    • Parameters

      • args: {
            B2B_TEMPORAL_WORKER_TASK_QUEUE: string;
            db: B2bDatabase;
            ledgerAccountQueryService: LedgerAccountQueryService;
            paymentInstrumentQueryService: PaymentInstrumentQueryService;
            productQuoteService: ProductQuoteService;
            solanaTokenService: SolanaTokenQueryService;
            temporalClient: Client;
            withdrawalAdminService: WithdrawalAdminService;
            withdrawalQuoteService: WithdrawalQuoteService;
        }

      Returns BlockchainWithdrawalQuoteService

    • Parameters

      • args: Pick<
            BlockchainWithdrawalQuote,
            "deviceIpAddress"
            | "deviceLocation"
            | "entityId",
        > & (
            { customerId: string; targetWalletPaymentInstrument: string; sourceAccountId: string; idempotencyKey?: string | undefined; } & ({ sourceAmount: BigNumber; } | { targetAmount: BigNumber; })
        )

      Returns Promise<
          | { ok: true; value: BlockchainWithdrawalQuote }
          | {
              error:
                  | ServiceError<
                      "PRODUCT_BLOCKED"
                      | "PRODUCT_INACTIVE"
                      | "NO_ELIGIBLE_ROUTE",
                  >
                  | ServiceError<"ENTITY_NOT_FOUND" | "ENTITY_CANNOT_TRANSACT">
                  | ServiceError<"LIMIT_EXCEEDED", ProductLimitViolation>
                  | ServiceError<QuoteInvariantViolation>
                  | ServiceError<
                      "INSUFFICIENT_FUNDS",
                      { balance: { amount: BigNumber; currency: string } },
                  >;
              ok: false;
          },
      >