List of all the messages generated during the Function Task execution
Array
timestamp
Transcript query request timestamp. The moment when the task-requester calls the transcript query endpoint.
unixTimestamp
msgHash
Transcript Hash
Text
signature
v: Text
r: Text
s: Text
Execution Lifecycle messages
task_created
This message is logged into the transcript once the receives a new Function Task execution request.
Property
Description
Values
type
Message type
task_created
executionId
Current execution ID
Text
Original message received from the task-requester
msgHash
Current message hash
Text
signature
v: Text
r: Text
s: Text
publickey
Text
sequencerAddress
Text
timestamp
task_created message created timestamp
unixTimestamp
Task created original Message: dispatch_task
Property
Description
Values
type
Message type
dispatch_task
taskId
Function task ID
Text
executionId
Current execution ID
Text
msgHash
Current message hash
Text
signature
v: Text
r: Text
s: Text
limits
Function task execution limits values
gas: Maximum amount of steps allowed for task execution.
call: Amount of Nested calls allowed for task execution.
frame: Stack memory allocated for the Calls during the task execution.
memory: Amount of memory used by the task execution
econParams
Economics parameters for the function task execution.
reward: TBC
requiredSolutions: Min amount of solutions to get a validated result.
totalSolutions: Total amount of solutions to get a validated result.
executionTimeout: Amount of execution time before it gets canceled.
workers
blockNumber: number
selectionStrategy: [ "default"]
setNodes: Array of nodes
dispatcherTimestamp
Dispatcher timestamp at the moment of receiving a new task execution from taskRequester
unixTimestamp
taskRequesterTimestamp
Timestamp specified on the task execution request by the TaskRequester
unixTimestamp
ledgerName
Current ledger in usage
['avalanche']
blockHash
Current block hash
Text
blockNumber
Current block number
Number
chainId
Unique ID for blockchain identification
Text
nodeRegistryContractAddress
Node registration Smart contract Address
Text
taskRegistryContractAddress
Task registration Smart contract Address
Text
taskAuthorizationContractAddress
Task Authorization Contract Address
Text
taskRequesterAddress
Task Requester address. This address will pay for the task executio
Text
taskPath
Provided path for task execution. It must contain the namespace and taskname
Text
taskVersion
Provided version Task for execution
Number
senderAddress
Text
input
Function Task Input parameters
Text
node_outcome
Property
Description
Values
type
Message type
node_outcome
executionId
Current execution ID
Text
Original message received from the node
msgHash
Current message Hash
Text
signature
v: Text
r: Text
s: Text
sequencerAddress
Text
timestamp
Message sent timestamp
unixTimestamp
node_outcome original Message: computed_outcome
Property
Description
Values
type
Message type
computed_outcome
executionId
Current execution ID
Text
senderAddress
Text
encryptedSolution
"iv": Text
"ephemPublicKey": Text
"ciphertext": Text
"mac": Text
msgHash
Current message Hash
Text
signature
v: Text
r: Text
s: Text
solutions_revealed
This message is logged into the transcript after all the requested nodes (totalSolutions) have provided their solution or a timeout has occurred (whichever happens first). It includes all the solutions (in the received order) in their unencrypted form, as long as they arrived before the tiemout.
Property
Description
Values
type
Message type
solutions_revealed
executionId
Current execution ID
Text
msgHash
Current message Hash
Text
signature
v: Text
r: Text
s: Text
clearTextSolutions
Array of
[
signature: Node's signature
]
sequencerAddress
Text
timestamp
Message sent timestamp
unixTimestamp
clearTextSolutions message
This array will contain an unencrypted list of all the messages received from the nodes
Property
Description
Values
output
Unencrypted node solution
Text
status
[ "succeed", "Failed"]
Array of
limits
last
peak
versions
senderAddress
Truebit verify Node Address
Text
metering
Property
Description
Values
limits
gas
call
frame
memory
last
Actual last values consumed during execution
gas
call
frame
peak
Actual peak consumed during execution
call
frame
versions
Truebit protocol version
protocol: Truebit protocol version number
execution_completed
This message is logged into the transcript after all the requested nodes (totalSolutions) have provided their solution or a timeout has occurred (whichever happens first).
Property
Description
Values
type
Message type
execution_completed
executionId
Current execution ID
Text
transcriptHash
Text
status
Final execution status
["GamePending", "ReadyForInvoice", "Error"]
errorDetails
Only present if there was an error during the execution.
The details of any error thrown by the protocol or its services
signature
v: Text
r: Text
s: Text
signerAddress
Text
timestamp
Message sent timestamp
unixTimestamp
execution complete statuses
Status
Description
ReadyForInvoice
All the solutions match, so the protocol is ready to process the execution's invoices
GamePending
2 or more received solutions are different, so a verification game should be played to define which solution is right.
Error
There was an error during the execution. Please check the errorDetails field.
signature
signature
public key
Address
signature
List of selected to work on this function task rxecution
address
This message is logged into the transcript once the receives a new response from the containing the Task's execution result.
signature
address
address
Encrypted solution submitted by the using the public key.
signature
signature
List of all the solutions provided by the selected .