The namespace associated with the blob. This should be in `base64` format. Be sure to encode the value in your request.
blobCommitmentstringREQUIRED
The commitment of the blob you are trying to retrieve. This is a `base64` encoded string that represents the hash of the blob data. Be sure to encode the value in your request.
heightnumberREQUIRED
The block height at which the blob was submitted in the Celestia blockchain.
Response
namespacestring
The namespace of the blob.
datastring
The data of the blob, encoded in base64.
shareVersionnumber
The share version of the blob.
commitmentstring
The commitment of the blob, which is a hash of the blob data.
// Cargo.toml dependencies:
// [dependencies]
// reqwest = { version = "0.12" }
// tokio = { version = "1.46", features = ["macros", "rt-multi-thread"] }
use reqwest::{Client, header};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = Client::new();
let url = "https://t.tech/v0/blob?namespace=%22REPLACE%20ME%22&blobCommitment=%22REPLACE%20ME%22&height=0";
let api_key = "Your API Key"; // Replace with your actual token
let res = client
.get(url)
.bearer_auth(api_key)
.send()
.await?;
let status = res.status();
let body = res.text().await?;
println!("Status: {}", status);
println!("Response: {}", body);
Ok(())
}