Introduction
In this section, the developers will learn how to execute verifiable Functions/API tasks and get the execution transcript.
Last updated
Was this helpful?
In this section, the developers will learn how to execute verifiable Functions/API tasks and get the execution transcript.
Last updated
Was this helpful?
We use API_KEY to grant access to task execution. To get authorized using an API Key, include the registered API Key in the call's header. This allows the dispatcher service to validate access and identify who will cover the cost of the task execution (the address associated with the API Key).
Example
Use the following endpoints to execute your Function Task and API Task to obtain a verified result. Ensure you have the namespace
and taskname
beforehand to call any of these endpoints.
To run a Function Task, please call endpoint and specify the Namespace, Task name , task inputs, and task metadata.
To run an API Task, please call endpoint and specify the Namespace, Task name , task inputs, and task metadata.
Use these endpoints to poll for outputs of asynchronous or long-running tasks.
Interactive API docs can be found at: https://run.truebit.network/dispatcher/api-docs/
Use the following endpoints to retrieve the transcript associated with an existing executionId
or transcriptHash
You can also get information attached to the transcript such as the invoice.
Interactive API docs can be found at: https://run.truebit.network/transcript-query/api-docs/
The transcript is the source of truth of what happened during the Task execution. It contains every single step that happened in a transparent and verifiable way.
Please check the following links to learn how the Function and API transcript are built.