Function serializeTransaction

  • Serialize a base64 encoded transaction into a web3.js Transaction.

    Parameters

    • connection: Connection

      A connection to the cluster.

    • account: string | PublicKey

      Account that may sign the transaction.

    • base64Transaction: string

      transaction in the Solana Action spec.

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

      Options for getRecentBlockhash.

      • Optionalcommitment?: Commitment

    Returns Promise<Transaction>