sigil-sdk · client
Source declarations, signatures and documentation for client.
Source: sigil/node/sigil-sdk/src/client.rs. SHA-256: 0236a8490bc14cb2caf01d04a28127291afa5f70eb4952a41cf853fcb972b252.
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.
client::SigilClientConfig
Configuration for connecting to a Sigil node.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct SigilClientConfig {
/// RPC endpoint URL (e.g. `"http://localhost:12618"`).
pub rpc_url: String,
/// The chain ID to target.
pub chain_id: String,
/// Request timeout in seconds.
pub timeout_secs: u64,
/// Optional bearer token for authenticated endpoints.
#[serde(skip_serializing_if = "Option::is_none")]
pub auth_token: Option<String>
}Source line: 10.
client::SigilClientConfig::mainnet
Create a config targeting the Sigil mainnet.
pub fn mainnet(rpc_url: &str) -> Self;Source line: 24.
client::SigilClientConfig::testnet
Create a config targeting the Sigil testnet.
pub fn testnet(rpc_url: &str) -> Self;Source line: 34.
client::SigilClientConfig::devnet
Create a config targeting a local devnet.
pub fn devnet(rpc_url: &str) -> Self;Source line: 44.
client::SigilClientConfig::with_timeout
Override the request timeout.
pub fn with_timeout(mut self, secs: u64) -> Self;Source line: 54.
client::SigilClientConfig::with_auth_token
Set an authentication token.
pub fn with_auth_token(mut self, token: impl Into<String>) -> Self;Source line: 60.