compileTEAL method

Future<TealCompilation> compileTEAL(
  1. String sourceCode
)

Compile TEAL source code to binary, produce its hash

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.

Implementation

Future<TealCompilation> compileTEAL(String sourceCode) async {
  return _applicationRepository.compileTEAL(sourceCode);
}