Truebit Verify
  • Getting Started
    • 📄What is Truebit Verify?
      • How does Truebit work?
      • System Actors
    • ⏱️Get Started
    • ⚙️Architecture
      • Truebit Verify Hub
      • Truebit Verify Nodes
      • What is a transcript?
        • Transcript example
        • API Transcript example
    • Key Concepts
      • What is verification?
      • Determinism
      • WebAssembly
      • Task instrumentation
  • Developing Truebit Tasks
    • Introduction
    • Writing Function Tasks
      • Supported languages
        • Javascript
        • Python
        • Rust
    • Writing API Tasks
    • Task examples
      • Function Task examples
        • Fibonacci
        • Reverse Alphabet
        • Encrypt sha256 using bun.js
        • Encrypt sha256 using Deno
        • ECDSA signature verification
        • NumPy example
      • API Task examples
        • Pet Store CRUD
        • API-Auth examples
    • Namespace management
    • Task Authorization
    • Truebit CLI
      • secret.json
  • Executing Truebit tasks
    • Introduction
    • Task Execution API
      • Execute Function Tasks
      • Execute API Tasks
      • Get Task Status
    • Transcript API
      • Get Transcript
      • Get Invoice
  • Community
    • Truebit Unchained Protocol
    • Support
Powered by GitBook
On this page

Was this helpful?

  1. Executing Truebit tasks
  2. Transcript API

Get Invoice

PreviousGet TranscriptNextTruebit Unchained Protocol

Last updated 6 days ago

Was this helpful?

Overview

Returns the Transcript associated with the given executionId

The fields in "*" are Required

Code 200 - Successful operation

Returns the Invoice associated with the given executionId

Find transcript invoice by executionId

get

Returns the transcript invoice associated with the given executionId parameter

Path parameters
executionIdstringRequired

Execution Id

Responses
200
Successful operation
application/json
404
Cannot find any invoice for given executionId
application/json
get
GET /task/{executionId}/transcriptInvoice HTTP/1.1
Host: run.truebit.network
Accept: */*
{
  "executionId": "1104204c-c482-42e8-8c14-1305936dc5c3",
  "taskId": "rs_eda4e148793026cd270734cf3bab40cdd58c9d506754ef29d07c06033dea431c/1.0.0",
  "taskCreated_timeStamp": 1725385103522,
  "invoiceId": "1792917253851031498",
  "stepGasPrice": 5e-7,
  "accounting_signature": {
    "v": 28,
    "r": "7783239436b43020507c8354c2bb5033f5f6609bba514cd880553a2b726d6a85",
    "s": "19a6e9723fc7e697998fc003af990dfaae948b9edd8610c7136904fa228799a5"
  },
  "lineItem": [
    {
      "operation": "charge",
      "account": "0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC",
      "total_steps_computed": 6839448,
      "peak_memory_used": 17
    },
    {
      "operation": "pay",
      "account": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8",
      "total_steps_computed": 6839448,
      "peak_memory_used": 17
    },
    {
      "operation": "pay",
      "account": "0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC",
      "total_steps_computed": 6839448,
      "peak_memory_used": 17
    },
    {
      "operation": "pay",
      "account": "0x90F79bf6EB2c4f870365E785982E1f101E93b906",
      "total_steps_computed": 6839448,
      "peak_memory_used": 17
    }
  ]
}
  • Overview
  • GETFind transcript invoice by executionId
  • Code 200 - Successful operation