Optional
props: ClientConfigurationGet logger if set
Gets the maximum number of nodes that a transaction or query will attempt to execute against.
The current maximum nodes per transaction setting. Returns -1 if no limit is set (uses network defaults).
Set the maximum payment allowable for queries.
Set if a new transaction ID should be generated when a TRANSACTION_EXPIRED
status
is returned.
Sets the maximum number of nodes that a transaction or query will execute against.
Maximum nodes per transaction. Set to 0 to disable.
The client instance for method chaining
Set the account that will, by default, pay for transactions and queries built with this client. NOTE: When using string for private key, the string needs to contain DER headers
Number of milliseconds
Update the network address book.
Static
_extractExtracts shard and realm values from a network configuration. Note: This method assumes the network is consistent (all nodes in same shard/realm). Use validateNetworkConsistency() first to ensure this.
Static
_validateValidates that all nodes in a network are in the same shard and realm.
Static
forConstruct a Hedera client pre-configured for local-node access.
Optional
props: { scheduleNetworkUpdate?: boolean } = ...Static
forConstruct a Hedera client pre-configured for Mainnet access.
Optional
props: { scheduleNetworkUpdate?: boolean } = {}Static
forConstruct a Hedera client pre-configured for Mainnet access with network update.
Optional
props: { scheduleNetworkUpdate?: boolean } = {}Static
forStatic
forOptional
props: { scheduleNetworkUpdate?: boolean } = {}Static
forConstruct a client for a specific network with optional network update. Updates network only if the network is not "local-node".
Optional
props: { scheduleNetworkUpdate?: boolean } = {}Static
forConstruct a client for a specific network.
It is the responsibility of the caller to ensure that all nodes in the map are part of the same Hedera network. Failure to do so will result in undefined behavior.
The client will load balance all requests to Hedera using a simple round-robin scheme to chose nodes to send transactions to. For one transaction, at most 1/3 of the nodes will be tried.
Optional
props: ClientConfigurationStatic
forConstruct a Hedera client pre-configured for Previewnet access.
Optional
props: { scheduleNetworkUpdate?: boolean } = {}Static
forConstruct a Hedera client pre-configured for Previewnet access with network update.
Optional
props: { scheduleNetworkUpdate?: boolean } = {}Static
forConstruct a Hedera client pre-configured for Testnet access.
Optional
props: { scheduleNetworkUpdate?: boolean } = {}Static
forConstruct a Hedera client pre-configured for Testnet access with network update.
Optional
props: { scheduleNetworkUpdate?: boolean } = {}Static
fromStatic
from
Logger