Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Hierarchy

  • AnchorProvider

Implements

Index

Constructors

  • Parameters

    • connection: Connection

      The cluster connection where the program is deployed.

    • wallet: Wallet

      The wallet used to pay for and sign all transactions.

    • opts: ConfirmOptions

      Transaction confirmation options to use by default.

    Returns AnchorProvider

Properties

connection: Connection
publicKey: PublicKey
wallet: Wallet

Methods

  • Returns a Provider with a wallet read from the local filesystem.

    Parameters

    • Optional url: string

      The network cluster url.

    • Optional opts: ConfirmOptions

      The default transaction confirmation options.

      (This api is for Node only.)

    Returns AnchorProvider

Generated using TypeDoc