nexus-sdk 2.0.0

Rust SDK for Nexus protocol types, RPC access, and transaction construction.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use serde::{Deserialize, Serialize};

/// Represents a blob object in the Walrus network
#[derive(Debug, Deserialize, Serialize)]
pub struct BlobObject {
    #[serde(rename = "blobId")]
    pub blob_id: String,
    pub id: String,
    pub storage: BlobStorage,
}

/// Storage information for a blob
#[derive(Debug, Deserialize, Serialize)]
pub struct BlobStorage {
    #[serde(rename = "endEpoch")]
    pub end_epoch: u64,
}