API Transcript example
Last updated
Was this helpful?
Last updated
Was this helpful?
This example illustrates an API Task execution transcript.
executionId
Current execution ID
Text
List of all the messages generated during the API Task execution
timestamp
Transcript query request timestamp. The moment when the task-requester calls the transcript query endpoint.
Number
msgHash
Transcript Hash
Text
signature
v: Text r: Text s: Text
This message is logged into the transcript once the receives a new API task execution request.
type
Message type
api_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
Number
type
Message type
dispatch_api_task
taskId
API Task ID
Text
executionId
Current execution ID
Text
msgHash
Current message Hash
Text
signature
v: Text r: Text s: 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
senderAddress
Text
input
API Task Input parameters
path: Endpoint Path method: {POST, GET} body: Body endpoint values
type
Message type
api_outcome
executionId
Current execution ID
Text
Original message received from the api provider
msgHash
Current message Hash
Text
signature
v: Text r: Text s: Text
sequencerAddress
Text
timestamp
Message sent timestamp
Number
type
Message type
api_fetcher_outcome
executionId
Current execution ID
Text
senderAddress
Text
bodyResponse
API provider response
Text
msgHash
Current message Hash
Text
signature
v: Text r: Text s: 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.
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
transcriptHash
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
signature
v: Text r: Text s: Text
signerAddress
Text
timestamp
Message sent timestamp
unixTimestamp
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.
signature
signature
public key
Address
signature
address
This message is logged into the transcript once the receives the responser from the API provider.
signature
address
address
signature
hash.
signature
address