Hierarchy

  • default
    • Client

Constructors

Properties

_logger: null | Logger

Logger

External

_maxAttempts: null | number
_timer: Timeout

Accessors

  • get defaultRegenerateTransactionId(): boolean
  • Returns boolean

  • get isClientShutDown(): boolean
  • Returns boolean

  • get maxNodesPerTransaction(): number
  • Returns number

  • get maxQueryPayment(): Hbar
  • Returns Hbar

    Deprecated

    in a favor of defaultMaxQueryPayment

  • get maxTransactionFee(): null | Hbar
  • Returns null | Hbar

    Deprecated

    • Use defaultMaxTransactionFee instead
  • get networkName(): null | string
  • Returns null | string

    Deprecated

  • get networkUpdatePeriod(): number
  • Returns number

  • get nodeMaxReadmitPeriod(): number
  • Returns number

  • get nodeMinReadmitPeriod(): number
  • Returns number

  • get requestTimeout(): null | number
  • Returns null | number

Methods

  • Returns ((address) => any)

      • (address): any
      • Parameters

        • address: string

        Returns any

  • Returns ((address) => default)

      • (address): default
      • Parameters

        • address: string

        Returns default

  • Returns null | ClientOperator

  • Returns boolean

  • Returns boolean

  • Set the maximum payment allowable for queries.

    Parameters

    • defaultMaxQueryPayment: Hbar

    Returns default<default, any>

  • Set the defaultimum fee to be paid for transactions executed by this client.

    Parameters

    • defaultMaxTransactionFee: Hbar

    Returns Client

  • Set if a new transaction ID should be generated when a TRANSACTION_EXPIRED status is returned.

    Parameters

    • defaultRegenerateTransactionId: boolean

    Returns Client

  • Parameters

    • maxNodesPerTransaction: number

    Returns Client

  • Parameters

    • maxQueryPayment: Hbar

    Returns default<default, any>

    Deprecated

    in a favor of setDefaultMaxQueryPayment() Set the maximum payment allowable for queries.

  • Parameters

    • maxTransactionFee: Hbar

    Returns Client

    Deprecated

    • Use setDefaultMaxTransactionFee() instead Set the maximum fee to be paid for transactions executed by this client.
  • Parameters

    • network: string | {
          [key: string]: string | AccountId;
      }

    Returns void

  • Parameters

    • networkUpdatePeriod: number

    Returns Client

  • Parameters

    • nodeMaxReadmitPeriod: number

    Returns Client

  • Parameters

    • nodeMinReadmitPeriod: number

    Returns Client

  • Set the account that will, by default, pay for transactions and queries built with this client.

    Parameters

    Returns Client

  • Sets the account that will, by default, pay for transactions and queries built with this client.

    Parameters

    • accountId: string | AccountId
    • publicKey: string | PublicKey
    • transactionSigner: ((message) => Promise<Uint8Array>)
        • (message): Promise<Uint8Array>
        • Parameters

          • message: Uint8Array

          Returns Promise<Uint8Array>

    Returns Client

  • Parameters

    • requestTimeout: number

      Number of milliseconds

    Returns Client

  • Parameters

    • signOnDemand: boolean

    Returns void

  • Parameters

    • transportSecurity: boolean

    Returns Client

  • Construct 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.

    Parameters

    • network: string | {
          [key: string]: string | AccountId;
      }

    Returns Client

Generated using TypeDoc