Skip to main content

validateTransfer

Callable

  • validateTransfer(connection: Connection, signature: string, fields: ValidateTransferFields, options?: { commitment?: Finality }): Promise<TransactionResponse>

  • Check that a given transaction contains 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.

    • optionaloptions: { commitment?: Finality }

      Options for getTransaction.

    Returns Promise<TransactionResponse>