Class TealCompile
- java.lang.Object
-
- com.algorand.algosdk.v2.client.common.Query
-
- com.algorand.algosdk.v2.client.algod.TealCompile
-
public class TealCompile extends Query
Given TEAL source code in plain text, return base64 encoded program bytes and base32 SHA512_256 hash of program bytes (Address style). This endpoint is only enabled when a node's configuration file sets EnableDeveloperAPI to true. /v2/teal/compile
-
-
Constructor Summary
Constructors Constructor Description TealCompile(Client client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response<CompileResponse>
execute()
Execute the query.Response<CompileResponse>
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()
TealCompile
source(byte[] source)
TEAL source code to be compiledTealCompile
sourcemap(Boolean sourcemap)
When set to `true`, returns the source map of the program as a JSON.-
Methods inherited from class com.algorand.algosdk.v2.client.common.Query
addPathSegment, addQuery, addToBody, addToBody, baseExecute, baseExecute, getRequestMethod, getRequestUrl, getRequestUrl, resetPathSegment
-
-
-
-
Constructor Detail
-
TealCompile
public TealCompile(Client client)
-
-
Method Detail
-
source
public TealCompile source(byte[] source)
TEAL source code to be compiled
-
sourcemap
public TealCompile sourcemap(Boolean sourcemap)
When set to `true`, returns the source map of the program as a JSON. Defaults to `false`.
-
execute
public Response<CompileResponse> execute() throws Exception
Execute the query.
-
execute
public Response<CompileResponse> 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
-
-