The network and wallet context used to send transactions paid for and signed by the provider.

Implements

Constructors

Properties

connection: Connection

The cluster connection where the program is deployed.

opts: ConfirmOptions = ...

Transaction confirmation options to use by default.

publicKey: PublicKey
wallet: Wallet

The wallet used to pay for and sign all transactions.

Methods

  • Similar to send, but for an array of transactions and signers. All transactions need to be of the same type, it doesn't support a mix of VersionedTransactions and Transactions.

    Type Parameters

    Parameters

    • txWithSigners: {
          signers?: Signer[];
          tx: T;
      }[]

      Array of transactions and signers.

    • Optional opts: ConfirmOptions

      Transaction confirmation options.

    Returns Promise<string[]>