• Creates a Transaction with given instructions and optionally signs it.

    Parameters

    • connection: Connection

      Solana client connection

    • ixs: TransactionInstruction[]

      Instructions to add to the Transaction

    • payer: undefined | null | PublicKey

      PublicKey of payer

    • Optionalcommitment: Commitment

      optional Commitment that will be used to fetch latest blockhash

    • OptionalpartialSigners: (undefined | Keypair)[]

      optional signers that will be used to partially sign a Transaction

    Returns Promise<{ context: Context; hash: Readonly; tx: VersionedTransaction }>

    Transaction and Blockhash