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

    This service is meant to be called by admins in response to money landing in one of our bank accounts.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Processes a US wire deposit from start to finish.

      Parameters

      • args: {
            bankTransactionId: string;
            customerId: string;
            entityId: string;
            imad?: string;
            memo?: string;
            omad?: string;
            senderName?: string;
            walletAddress: PublicKey;
            walletBlockchain: "SOLANA";
        }

        Parameters for processing the US wire deposit

        • bankTransactionId: string

          Required Bank transaction ID to process

        • customerId: string

          Required customer ID for the deposit

        • entityId: string

          Optional entity ID (used if not available in memo)

        • Optionalimad?: string
        • Optionalmemo?: string

          Optional bank memo ID for the deposit

        • Optionalomad?: string
        • OptionalsenderName?: string
        • walletAddress: PublicKey

          Optional wallet address (used if not available in memo)

        • walletBlockchain: "SOLANA"

          Optional blockchain type, currently only "SOLANA" supported (used if not available in memo)

      Returns Promise<
          | { ok: true; value: { depositId: string } }
          | {
              error:
                  | ServiceError<"QUOTE_FAILED">
                  | ServiceError<"INVALID_BANK_TX", { bankTransactionId: string }>;
              ok: false;
          },
      >

      Promise that resolves when the deposit has been successfully processed