API Transcript example
This example illustrates an API Task execution transcript.
Example
Root message
executionId
Current execution ID
Text
timestamp
Transcript query request timestamp. The moment when the task-requester calls the transcript query endpoint.
Number
msgHash
Transcript Hash
Text
Execution Lifecycle messages
api_task_created
This message is logged into the transcript once the dispatch-service receives a new API task execution request.
type
Message type
api_task_created
executionId
Current execution ID
Text
msgHash
Current Message Hash
Text
timestamp
task_created message created timestamp
Number
Task created original Message: dispatch_task
type
Message type
dispatch_api_task
taskId
API Task ID
Text
executionId
Current execution ID
Text
msgHash
Current message Hash
Text
executionTimeout
number
ledgerName
Current ledger in usage
['avalanche']
blockHash
Current block hash
Text
blockNumber
Current block number
Number
chainId
Unique ID for blockchain identification
Number
taskRegistryContractAddress
Task registration Smart contract Address
Text
taskAuthorizationContractAddress
Task Authorization Contract Address
Text
taskRequesterAddress
Task Requester Address. This address will pay for the task execution
Text
taskPath
Provided path for task execution. It must contain the namespace and taskname
Text
taskVersion
Provided version Task for execution
Number
input
API Task Input parameters
path: Endpoint Path method: {POST, GET} body: Body endpoint values
api_outcome
This message is logged into the transcript once the API-adapter receives the responser from the API provider.
type
Message type
api_outcome
executionId
Current execution ID
Text
msgHash
Current message Hash
Text
timestamp
Message sent timestamp
Number
api_outcome original Message: api_fetcher_outcome
type
Message type
api_fetcher_outcome
executionId
Current execution ID
Text
bodyResponse
API provider response
Text
msgHash
Current message Hash
Text
tlsHandshakeHash
TLS handshake information hash
Text
status
API execution status
{Failed, Success, Running}
totalTransferredBytes
Bytes transferred during the API execution.
request: Total bytes transferred in the Request
response: Total bytes transferred in the Response.
execution_completed
This message is logged into the transcript after the API was executed or a timeout has occurred (whichever happens first).
type
Message type
execution_completed
executionId
Current execution ID
Text
status
Final execution status
["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
timestamp
Message sent timestamp
unixTimestamp
execution complete statuses
ReadyForInvoice
The API was executed, so the protocol is ready to process the execution's invoices
Error
There was an error during the API execution. Please check the errorDetails field.
Last updated
Was this helpful?