Constructor with the network configuration.
The wallet to use.
The node url to use
The function to use to build Hardhat errors.
Debug mode.
Enable fee delegation or not.
The function to use to build Hardhat errors.
Debug mode.
Readonly
enableEnable fee delegation or not.
RPC configuration.
Readonly
subscriptionReadonly
thorThorClient instance.
Optional
Readonly
walletProviderInternalWallet instance. It is optional because the majority of the methods do not require a wallet.
Returns the poll instance for subscriptions.
Get a signer into the internal wallet provider for the given address.
Optional
addressOrIndex: string | numberAddress of index of the account.
The signer for the given address.
It sends the request through the VeChainProvider.
The request arguments.
Overload of the sendAsync method. It is the same of the send method, but with a callback. Instead of returning the result, it calls the callback with the result.
The request payload (it contains method and params as 'send' method).
The callback to call with the result.
Initializes and starts the polling mechanism for subscription events. This method sets up an event poll that periodically checks for new events related to active subscriptions, such as 'newHeads' or log subscriptions. When new data is available, it emits these events to listeners.
This method leverages the Poll.createEventPoll
utility to create the polling mechanism,
which is then started by invoking startListen
on the poll instance.
This class is a wrapper for the VeChainProvider that Hardhat uses.
It exposes the interface that Hardhat expects, and uses the VeChainProvider as wrapped provider.