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

    Constructors

    Methods

    Constructors

    Methods

    • Parameters

      • __namedParameters: {
            customerId: string;
            idempotencyKey?: string;
            sourceAmount: BigNumber;
            sourceLedgerAccountId: string;
            withdrawalId?: string;
        }
        • customerId: string
        • OptionalidempotencyKey?: string

          Client-supplied dedupe token for standalone withdrawals (no withdrawalId). Ignored when withdrawalId is present — the withdrawal id remains the idempotency key, exactly as before.

        • sourceAmount: BigNumber
        • sourceLedgerAccountId: string
        • OptionalwithdrawalId?: string

      Returns Promise<
          Pick<
              {
                  amount: BigNumber;
                  commitId?: string;
                  commitTargets?: { address: Address; amount: BigNumber; owner?: Address }[];
                  commitTxId?: string;
                  createdAt: Date;
                  id: string;
                  idempotencyKey: string;
                  initiateTxId?: string;
                  ledgerAccountId: string;
                  status: "CREATED" | "PENDING" | "VOIDED" | "COMMITTED";
                  updatedAt: Date;
                  voidTxId?: string;
              },
              "id",
          >,
      >