Skip to main content

validateTransfer

Callable

  • validateTransfer(connection: Connection, signature: string, fields: ValidateTransferFields, finality?: Finality): Promise<TransactionResponse>

  • Validate that a given transaction signature corresponds with a transaction containing a valid Solana Pay transfer.

    @throws

    {ValidateTransferError}


    Parameters

    • connection: Connection

      A connection to the cluster.

    • signature: string

      The signature of the transaction to validate.

    • fields: ValidateTransferFields

      Fields of a Solana Pay transfer request to validate.

    • optionalfinality: Finality

      A subset of Commitment levels, which are at least optimistically confirmed.

    Returns Promise<TransactionResponse>