@hiero-ledger/sdk
    Preparing search index...

    Class LocalProvider

    Index

    Constructors

    • Parameters

      • props: {
            client?: WebClient;
            networkName?: "mainnet" | "testnet" | "previewnet" | "local-node";
        } = {}

      Returns LocalProvider

    Properties

    _client: WebClient

    Methods

    • The account's hbar balance, read from the mirror node.

      The tokens and tokenDecimals maps are always empty: the consensus node no longer serves balances, and the mirror node balance endpoint is hbar-only. Use MirrorNodeTokenBalanceQuery for a token balance.

      Parameters

      • accountId: string | AccountId
      • OptionalrequestTimeout: number

      Returns Promise<AccountBalance>