Class GetApplicationBoxByName


  • public class GetApplicationBoxByName
    extends Query
    Given an application ID and box name, it returns the round, box name, and value (each base64 encoded). Box names must be in the goal app call arg encoding 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...'. /v2/applications/{application-id}/box
    • Constructor Detail

      • GetApplicationBoxByName

        public GetApplicationBoxByName​(Client client,
                                       Long applicationId)
        Parameters:
        applicationId - An application identifier
    • Method Detail

      • name

        public GetApplicationBoxByName name​(String name)
        A box name, 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...'.
      • execute

        public Response<Box> 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.
        Specified by:
        execute in class Query
        Parameters:
        headers - an array of header keys
        values - an array of header values
        Returns:
        the query response object.
        Throws:
        Exception