Queries are requests that do not require network consensus. Queries are processed only by the single node the request is sent to. Below is a list of network queries by service.
A query that returns the cost of a query prior to submitting the query to network node for processing. If the cost of the query greater than the default max query payment (1 hbar) you can use setMaxQueryPayment(<hbar>) to change the default.
V2
V1
Method
Type
Description
getCost(<client>)
Client
Get the cost of the query in Hbar
getCost(<client, timeout>)
Client, Duration
The max length of time the sdk will attempt to retry for in the event of repeated busy responses from node(s)