Class GetApplicationBoxes
- java.lang.Object
-
- com.algorand.algosdk.v2.client.common.Query
-
- com.algorand.algosdk.v2.client.algod.GetApplicationBoxes
-
public class GetApplicationBoxes extends Query
Given an application ID, return boxes in lexographical order by name. If the results must be truncated, a next-token is supplied to continue the request. /v2/applications/{application-id}/boxes
-
-
Constructor Summary
Constructors Constructor Description GetApplicationBoxes(Client client, Long applicationId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response<BoxesResponse>
execute()
Execute the query.Response<BoxesResponse>
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()
GetApplicationBoxes
max(Long max)
Maximum number of boxes to return.GetApplicationBoxes
next(String next)
A box name, in the goal app call arg form 'encoding:value'.GetApplicationBoxes
prefix(String prefix)
A box name prefix, in the goal app call arg form 'encoding:value'.GetApplicationBoxes
values(Boolean values)
If true, box values will be returned.-
Methods inherited from class com.algorand.algosdk.v2.client.common.Query
addPathSegment, addQuery, addToBody, addToBody, baseExecute, baseExecute, getRequestMethod, getRequestUrl, getRequestUrl, resetPathSegment
-
-
-
-
Method Detail
-
max
public GetApplicationBoxes max(Long max)
Maximum number of boxes to return. Server may impose a lower limit.
-
next
public GetApplicationBoxes next(String next)
A box name, in the goal app call arg form 'encoding:value'. When provided, the returned boxes begin (lexographically) with the supplied name. Callers may implement pagination by reinvoking the endpoint with the token from a previous call's next-token.
-
prefix
public GetApplicationBoxes prefix(String prefix)
A box name prefix, in the goal app call arg form 'encoding:value'. For ints, use the form 'int:1234'. For raw bytes, use the form 'b64:A=='. For printable strings, use the form 'str:hello'. For addresses, use the form 'addr:XYZ...'.
-
values
public GetApplicationBoxes values(Boolean values)
If true, box values will be returned.
-
execute
public Response<BoxesResponse> execute() throws Exception
Execute the query.
-
execute
public Response<BoxesResponse> 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
-
-