Termina
  • Overview
    • Introduction
    • Quickstart
  • Solana Primer
    • Solana Virtual Machine (SVM)
    • Existing Scaling Solutions
    • Why Termina
  • Network Extension Stack
    • Overview
    • FAQs
    • Modules
      • SVM Engine
        • Engine Internals
        • Launching an Instance
      • zkSVM Prover
        • Prover Mechanics
        • Leveraging the zkSVM
      • Data Anchor
        • Data Flow
        • Using the Data Anchor
        • Indexing Data
          • Getting Blobs
            • get_blobs_by_network
            • get_blobs_by_namespace
            • get_blobs_by_blober
            • get_blobs_by_payer
            • get_blobs
          • Getting Payers
            • get_payers_by_network
          • Getting Proofs
            • get_proof_for_blob
            • get_proof
    • Rollups
  • Socials
    • Twitter
    • Discord
    • Website
Powered by GitBook
On this page
  1. Network Extension Stack
  2. Modules
  3. Data Anchor
  4. Indexing Data
  5. Getting Proofs

get_proof_for_blob

PreviousGetting ProofsNextget_proof

Last updated 8 days ago

Retrieves a compound proof for a particular data blob given its on-chain address.

post
  • Returns null if the blob does not exist.

  • Returns an error if there was a database or RPC failure.

The proof shows that the indexer has returned a data blob whose content hasn’t been tampered with because it hashes into a blober account, which hashes into the bankhash at submission.

Body
all ofOptional
Responses
200
RPC success with proof bundle
application/json
400
Invalid request payload
application/json
500
Internal indexer error
application/json
post
POST /get_proof_for_blob HTTP/1.1
Host: devnet.indexer.data-anchor.termina.technology
Content-Type: application/json
Accept: */*
Content-Length: 130

{
  "id": "46",
  "jsonrpc": "2.0",
  "method": "get_proof_for_blob",
  "params": {
    "blob_address": "4Nd1m1c9f9LxFHVfv1m1ChMpV4hV6j3uYVFzh5eRvYV7"
  }
}
{
  "jsonrpc": "2.0",
  "id": "46",
  "result": {
    "accounts_delta_proof": {
      "proof": [
        10,
        20,
        30
      ]
    },
    "bank_hash_proof": {
      "parent_hash": "abc123...",
      "accounts_delta_hash": "def456..."
    },
    "slot_hash_proof": {
      "slot": 12345678,
      "hash": "ghi789..."
    },
    "blob_proofs": [
      {
        "blob": "4Nd1m1c9f9LxFHVfv1m1ChMpV4hV6j3uYVFzh5eRvYV7",
        "data": [
          1,
          2,
          3
        ]
      }
    ]
  }
}