Skip to main content

fetchInteraction

Callable

  • fetchInteraction(connection: Connection, account: PublicKey, link: string | URL, options?: { commitment?: Commitment }): Promise<FetchInteractionResponse>

  • Fetch a transaction from a Solana Pay transaction request link.

    @throws

    {FetchInteractionError}


    Parameters

    • connection: Connection

      A connection to the cluster.

    • account: PublicKey

      Account that may sign the transaction.

    • link: string | URL

      link in the Solana Pay spec.

    • options: { commitment?: Commitment } = {}

      Options for getLatestBlockhash.

    Returns Promise<FetchInteractionResponse>