27 releases (15 breaking)
Uses new Rust 2024
| new 1.0.0-rc.2 | Feb 26, 2026 |
|---|---|
| 0.16.2 | Jan 27, 2026 |
| 0.15.0 | Nov 21, 2025 |
| 0.11.3 | Jul 29, 2025 |
| 0.1.1 | Jan 15, 2024 |
#165 in Magic Beans
9,783 downloads per month
Used in 5 crates
775KB
15K
SLoC
Celestia RPC
A collection of traits for interacting with Celestia data availability nodes RPC.
This crate builds on top of the jsonrpsee clients.
use celestia_rpc::{BlobClient, Client, TxConfig};
use celestia_types::{AppVersion, Blob, nmt::Namespace};
async fn submit_blob() {
// create a client to the celestia node
let token = std::env::var("CELESTIA_NODE_AUTH_TOKEN").expect("Token not provided");
let client = Client::new("ws://localhost:36658", Some(&token), None, None)
.await
.expect("Failed creating rpc client");
// create a blob that you want to submit
let my_namespace = Namespace::new_v0(&[1, 2, 3, 4, 5]).expect("Invalid namespace");
let blob = Blob::new(
my_namespace,
b"some data to store on blockchain".to_vec(),
None,
AppVersion::latest(),
)
.expect("Failed to create a blob");
// submit it
client.blob_submit(&[blob], TxConfig::default())
.await
.expect("Failed submitting the blob");
}
Dependencies
~23–42MB
~586K SLoC