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
| Param | Type |
|---|---|
| return | Array |
getExecution
Returns the execution object if present, null if otherwise
getExecution() ► Execution
| Param | Type |
|---|---|
| return | Execution |
getKeys
Returns the program keys if present
getKeys() ► KeyPair
| Param | Type |
|---|---|
| return | KeyPair |
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
| Param | Type |
|---|---|
| return | ProvingKey |
getVerifyingKey
Returns the verifying_key associated with the program
getVerifyingKey() ► VerifyingKey
| Param | Type |
|---|---|
| return | VerifyingKey |
getFunctionId
Returns the function identifier
getFunctionId() ► string
| Param | Type |
|---|---|
| return | string |
getProgram
Returns the program
getProgram() ► Program
| Param | Type |
|---|---|
| return | Program |