Skip to main content

validateTransactionSignature

Callable

  • validateTransactionSignature(connection: Connection, signature: string, recipient: PublicKey, amount: BigNumber, splToken?: PublicKey, reference?: PublicKey | PublicKey[], finality?: Finality): Promise<TransactionResponse>

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


    Parameters

    • connection: Connection

      A connection to the cluster.

    • signature: string

      The signature to validate.

    • recipient: PublicKey

      recipient in the Solana Pay spec

    • amount: BigNumber

      amount in the Solana Pay spec

    • optionalsplToken: PublicKey

      splToken in the Solana Pay spec

    • optionalreference: PublicKey | PublicKey[]

      -reference in the Solana Pay spec

    • optionalfinality: Finality

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

    Returns Promise<TransactionResponse>