Invoice Transcript

Overview

This transcript serves as the official record of the computation’s cost and resource usage across the platform. Whether you are running Truebit Functions or API Tasks, it provides a verifiable breakdown of the fees and execution steps, ensuring that billing is as transparent as the computation itself.

Description

chevron-rightFunction Invoice Transcripthashtag
chevron-rightAPI Invoice Transcripthashtag

Execution Lifecycle Messages

chevron-rightroot messagehashtag

The root message serves as the initial entry in the Function Invoice transcript. It includes critical details like the execution ID, taskId, and a list of liteItems, which capture all recorded operations on the invoice, such as "charge," "pay," and "penalty."

Property
Description
Values

executionId

Current execution ID

Text

taskId

Executed Function task

Text

taskCreated_timeStamp

Timestamp for task creation message

unixTimestamp

invoiceId

InvoiceId

Number

stepGasPrice / byteGasPrice

  • stepGasPrice: Amount of GAS paid for each execution step

  • byteGasPrice: Amount of GAS paid for each transferred byte.

Number

accounting_signature

Truebit Verify Hub

v: Text r: Text s: Text

lineItem

List of all operations generated during the task execution.

Array


chevron-rightlineItem Function Taskhashtag

For each participant in the Task execution, there is a lineItem representing an action applied to an "address".

  • Charge: The Task requester is billed for the execution request.

  • Pay: The Truebit Verify node is rewarded for executing and submitting the Task result.

  • Penalty: The Truebit Verify node is penalized for submitting an incorrect response.

Property
Description
Values

operation

Operation Type

["charge","pay","penalty"]

account

  • If messageType is "charge", you will see the Task Requester Address

  • If messageType is "pay" or "penalty", you will see the Truebit Verify Address*

Text

total_steps_computed

Total amount of steps executed by the Truebit Verify Node.

Text

peak_memory_used

Peak memory used by the Truebit Verify Node.

Text

chevron-rightlineItem API Taskhashtag

The lineitem details the charge operation for the Task Requester.

Property
Description
Values

operation

Operation Type

charge

account

Task Requester Address

Text

totalTransferredBytes

Amount of bytes transferred during the API execution

  • request

  • response

Last updated

Was this helpful?