Skip to main content

ExecutionResponse

Overview

Webassembly Representation of an Aleo function execution response. This object is returned by the execution of an Aleo function off-chain. It provides methods for retrieving the outputs of the function execution, as well as access to execution details, program keys, and proving/verifying keys.

Methods

getOutputs

Get the outputs of the executed function

getOutputs()Array
ParamType
returnArray

getExecution

Returns the execution object if present, null if otherwise

getExecution()Execution
ParamType
returnExecution

getKeys

Returns the program keys if present

getKeys()KeyPair
ParamType
returnKeyPair

getProvingKey

Returns the proving_key if the proving key was cached in the Execution response. Note the proving key is removed from the response object after the first call to this function. Subsequent calls will return null.

getProvingKey()ProvingKey
ParamType
returnProvingKey

getVerifyingKey

Returns the verifying_key associated with the program

getVerifyingKey()VerifyingKey
ParamType
returnVerifyingKey

getFunctionId

Returns the function identifier

getFunctionId() ► string
ParamType
returnstring

getProgram

Returns the program

getProgram()Program
ParamType
returnProgram