Constructs a new ThorClient
instance with a given HTTP client.
The HTTP client instance used for making network requests.
Optional
options: BlocksModuleOptions(Optional) Other optional parameters for polling and error handling.
Readonly
accountsThe AccountsModule
instance
Readonly
blocksThe BlocksModule
instance
Readonly
contractsThe 'ContractClient' instance
Readonly
debugThe DebugModule
instance
Readonly
forkThe 'GalacticaForkDetector' instance
Readonly
gasThe GasModule
instance
Readonly
httpThe HTTP client instance used for making network requests.
Readonly
logsThe LogsModule
instance used for interacting with log-related endpoints.
Readonly
nodesThe NodesModule
instance
Readonly
transactionsStatic
atCreates a new ThorClient
instance from a given URL.
The URL of the network to connect to.
Optional
options: BlocksModuleOptionsOptional configuration settings for the Blocks module.
A ThorClient instance connected to the specified network URL.
Static
fromCreates a ThorClient instance from a network URL.
The URL of the network to connect to.
Optional
options: BlocksModuleOptionsOptional configuration settings for the Blocks module.
A ThorClient instance connected to the specified network URL.
Use ThorClient.at instead.
The
ThorClient
class serves as an interface to interact with the VeChainThor blockchain. It provides various methods.