Skip to main content

fiber_json_types/
context.rs

1//! RPC context types for the Fiber Network JSON-RPC API.
2
3use schemars::JsonSchema;
4use serde::{Deserialize, Serialize};
5
6/// RPC context for watchtower operations.
7#[derive(Serialize, Deserialize, Debug, Clone, JsonSchema)]
8pub struct RpcContext {
9    /// Node ID (base58 encoded), read from user RPC biscuit token
10    pub node_id: String,
11}