Constructor for VeChainProvider
ThorClient instance.
Optional
wallet: ProviderInternalWalletProviderInternalWallet instance. It is optional because the majority of the methods do not require a wallet.
Enable fee delegation or not.
Readonly
enableEnable fee delegation or not.
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.
This method is used to send a request to the provider. Basically, it is a wrapper around the RPCMethodsMap.
Method and parameters to be used for the request.
The result of the request.
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.
Our core provider class for VeChain