Class GetSupply
- java.lang.Object
-
- com.algorand.algosdk.v2.client.common.Query
-
- com.algorand.algosdk.v2.client.algod.GetSupply
-
public class GetSupply extends Query
Get the current supply reported by the ledger. /v2/ledger/supply
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response<SupplyResponse>
execute()
Execute the query.Response<SupplyResponse>
execute(String[] headers, String[] values)
Execute the query with custom headers, there must be an equal number of keys and values or else an error will be generated.protected QueryData
getRequestString()
-
Methods inherited from class com.algorand.algosdk.v2.client.common.Query
addPathSegment, addQuery, addToBody, addToBody, baseExecute, baseExecute, getRequestMethod, getRequestUrl, getRequestUrl, resetPathSegment
-
-
-
-
Constructor Detail
-
GetSupply
public GetSupply(Client client)
-
-
Method Detail
-
execute
public Response<SupplyResponse> execute() throws Exception
Execute the query.
-
execute
public Response<SupplyResponse> execute(String[] headers, String[] values) throws Exception
Execute the query with custom headers, there must be an equal number of keys and values or else an error will be generated.
-
getRequestString
protected QueryData getRequestString()
- Specified by:
getRequestString
in classQuery
-
-