sigil-rpc · responses
Source declarations, signatures and documentation for responses.
Source: sigil/node/sigil-rpc/src/responses.rs. SHA-256: bb4b88ed78249589845f31db4538e9ecae9f9754a2dcbf2bb38ce86ced005ab0.
This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.
responses::BlockResponse
Response for sigil_getBlock.
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct BlockResponse {
/// The full block data.
pub block: Block,
/// Hex-encoded block hash.
pub hash: String
}Source line: 12.
responses::TransactionResponse
Response for sigil_getTransaction.
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct TransactionResponse {
/// The signed transaction.
pub tx: SignedTransaction,
/// Block height at which the transaction was included, if finalized.
pub block_height: Option<u64>,
/// Whether this transaction has been finalized.
pub confirmed: bool
}Source line: 21.
responses::NodeInfoResponse
Response for sigil_getNodeInfo.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct NodeInfoResponse {
/// The chain identifier.
pub chain_id: String,
/// Protocol version.
pub protocol_version: String,
/// Current block height.
pub current_height: u64,
/// Current epoch number.
pub current_epoch: u64,
/// Node operating mode (e.g. `"validator"`, `"rpc"`, `"archive"`).
pub node_mode: String,
/// Number of connected peers.
pub peer_count: usize
}Source line: 32.
responses::SyncStatusResponse
Response for sigil_getSyncStatus.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct SyncStatusResponse {
/// Whether the node is currently syncing.
pub syncing: bool,
/// The node's current block height.
pub current_height: u64,
/// The target height (highest known from peers).
pub target_height: u64,
/// Number of peers the node has synced headers from.
pub peers_synced: usize
}Source line: 49.
responses::StateResponse
Response for sigil_getState.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct StateResponse {
/// The state partition queried.
pub partition: String,
/// The key queried.
pub key: String,
/// The value, if found (hex-encoded bytes).
pub value: Option<String>,
/// Block height at which the state was read.
pub at_height: u64
}Source line: 62.
responses::ValidatorResponse
Response for sigil_getValidator.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct ValidatorResponse {
/// Validator DID.
pub did: String,
/// Current stake in micro-MINT.
pub stake: u64,
/// Validator mode.
pub mode: String,
/// Whether the validator is in the active set.
pub active: bool
}Source line: 75.
responses::ValidatorSetResponse
Response for sigil_getValidatorSet.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct ValidatorSetResponse {
/// The epoch this validator set applies to.
pub epoch: u64,
/// Total count of active validators.
pub total: usize,
/// The validators.
pub validators: Vec<ValidatorResponse>
}Source line: 88.
responses::ProposalResponse
Response for sigil_getProposal.
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct ProposalResponse {
/// Proposal ID.
pub id: String,
/// Proposal title.
pub title: String,
/// Proposal description.
pub description: String,
/// Proposal type.
pub proposal_type: String,
/// Current status (e.g. `"voting"`, `"passed"`, `"rejected"`, `"executed"`).
pub status: String,
/// Payload data.
pub payload: serde_json::Value
}Source line: 99.
responses::SendTransactionResponse
Response for sigil_sendTransaction.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct SendTransactionResponse {
/// Hex-encoded transaction hash.
pub tx_hash: String,
/// Whether the transaction was accepted into the mempool.
pub accepted: bool
}Source line: 116.
responses::TransactionReceiptResponse
Response for sigil_getTransactionReceipt.
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct TransactionReceiptResponse {
/// The transaction receipt.
pub receipt: sigil_core::Receipt
}Source line: 125.
responses::MarsEntryResponse
Response for mars_getEntry.
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct MarsEntryResponse {
/// The entry DID.
pub did: String,
/// The entry data as JSON.
pub data: serde_json::Value,
/// Block height at which the entry was anchored.
pub anchored_at: u64
}Source line: 132.
responses::GalHmrResponse
Response for gal_getHmr. None when no anchor exists for the DID.
#[cfg(feature = "tower")]
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct GalHmrResponse {
pub anchor: Option<sigil_core::HmrAnchor>
}Source line: 148.
responses::GalMhrResponse
Response for gal_getMhr.
#[cfg(feature = "tower")]
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct GalMhrResponse {
pub anchor: Option<sigil_core::MhrAnchor>
}Source line: 155.
responses::GalEnrResponse
Response for gal_getEnr.
#[cfg(feature = "tower")]
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct GalEnrResponse {
pub anchor: Option<sigil_core::EnrAnchor>
}Source line: 162.
responses::GalOrgRootResponse
Response for gal_getOrgRoot.
#[cfg(feature = "tower")]
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct GalOrgRootResponse {
pub root: Option<sigil_core::OrgLineageRoot>
}Source line: 169.
responses::GalShardResponse
Response for gal_getShard (typed shard summary). The topology field
carries any relevant topology entries describing the shard's lineage
(split/merge/migrate history) — empty when the shard is freshly added.
#[cfg(feature = "tower")]
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct GalShardResponse {
pub assignment: Option<sigil_core::ShardAssignment>,
pub topology: Vec<sigil_core::ShardTopologyEntry>
}Source line: 178.
responses::GalRevocationResponse
Response for gal_checkRevocation. Wraps the canonical
RevocationStatus shape — resolvers MUST call this first.
#[cfg(feature = "tower")]
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct GalRevocationResponse {
#[serde(flatten)]
pub status: sigil_core::RevocationStatus
}Source line: 187.
responses::GalShardTopologyResponse
Response for gal_getShardTopology.
#[cfg(feature = "tower")]
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct GalShardTopologyResponse {
pub entries: Vec<sigil_core::ShardTopologyEntry>
}Source line: 195.