The cluster connection where the program is deployed.
The wallet used to pay for and sign all transactions.
Transaction confirmation options to use by default.
Readonly connectionThe cluster connection where the program is deployed.
Readonly optsTransaction confirmation options to use by default.
Readonly publicReadonly walletThe wallet used to pay for and sign all transactions.
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.
Array of transactions and signers.
Optional opts: ConfirmOptionsTransaction confirmation options.
Sends the given transaction, paid for and signed by the provider's wallet.
The transaction to send.
Optional signers: Signer[]The signers of the transaction.
Optional opts: ConfirmOptionsWithBlockhashTransaction confirmation options.
Simulates the given transaction, returning emitted logs from execution.
The transaction to send.
Optional signers: Signer[]The signers of the transaction. If unset, the transaction will be simulated with the "sigVerify: false" option. This allows for simulation of transactions without asking the wallet for a signature.
Optional commitment: CommitmentOptional includeAccounts: boolean | PublicKey[]Static defaultStatic envReturns a Provider read from the ANCHOR_PROVIDER_URL environment
variable
(This api is for Node only.)
Static localReturns a Provider with a wallet read from the local filesystem.
Optional url: stringThe network cluster url.
The default transaction confirmation options.
(This api is for Node only.)
The network and wallet context used to send transactions paid for and signed by the provider.