Initialize with Wallet or SolanaKeypair. Feepayer is the provided wallet Optionally provide confirmConfig, Default = 'confirmed'.
Optional
connectionOptional
lookOptional
providerOptional
solOptional
urlPrivate
fetchPrivate
fetchOptional
indexedTransactions: IndexedTransaction[]Fetches the latest Merkle tree by calling the fetchMerkleTree method with the TRANSACTION_MERKLE_TREE_KEY as the key.
Optional
indexedTransactions: IndexedTransaction[]An optional array of IndexedTransaction objects. If provided, the fetch operation will use these transactions.
A Promise that resolves when the operation is completed.
Private
loadStatic
initInitializes a Provider instance. This method should only be used if you use the WalletAdapter, such as in the browser. If you use a local keypair, use getNodeProvider() instead.
Throws an error if the wallet parameter is not provided.
This method is used to initialize a new instance of the Provider class.
A promise that resolves to a Provider instance.
Static
loadStatic method to load a mock Provider.
A promise that resolves to a mock Provider.
Generated using TypeDoc
Provides: wallets, connection, latest SolMerkleTree, LookupTable, confirmConfig, poseidon