Struct grin_wallet_config::types::WalletConfig
source · pub struct WalletConfig {Show 13 fields
pub chain_type: Option<ChainTypes>,
pub api_listen_port: u16,
pub owner_api_listen_port: Option<u16>,
pub api_secret_path: Option<String>,
pub node_api_secret_path: Option<String>,
pub check_node_api_http_addr: String,
pub owner_api_include_foreign: Option<bool>,
pub data_file_dir: String,
pub no_commit_cache: Option<bool>,
pub tls_certificate_file: Option<String>,
pub tls_certificate_key: Option<String>,
pub dark_background_color_scheme: Option<bool>,
pub accept_fee_base: Option<u64>,
}
Expand description
Command-line wallet configuration
Fields§
§chain_type: Option<ChainTypes>
Chain parameters (default to Mainnet if none at the moment)
api_listen_port: u16
The port this wallet will run on
owner_api_listen_port: Option<u16>
The port this wallet’s owner API will run on
api_secret_path: Option<String>
Location of the secret for basic auth on the Owner API
node_api_secret_path: Option<String>
Location of the node api secret for basic auth on the Grin API
check_node_api_http_addr: String
The api address of a running server node against which transaction inputs will be checked during send
owner_api_include_foreign: Option<bool>
Whether to include foreign API endpoints on the Owner API
data_file_dir: String
The directory in which wallet files are stored
no_commit_cache: Option<bool>
If Some(true), don’t cache commits alongside output data speed improvement, but your commits are in the database
tls_certificate_file: Option<String>
TLS certificate file
tls_certificate_key: Option<String>
TLS certificate private key file
dark_background_color_scheme: Option<bool>
Whether to use the black background color scheme for command line if enabled, wallet command output color will be suitable for black background terminal
accept_fee_base: Option<u64>
Scaling factor from transaction weight to transaction fee should match accept_fee_base parameter in grin-server
Implementations§
source§impl WalletConfig
impl WalletConfig
sourcepub fn api_listen_addr(&self) -> String
pub fn api_listen_addr(&self) -> String
API Listen address
sourcepub fn default_owner_api_listen_port() -> u16
pub fn default_owner_api_listen_port() -> u16
Default listener port
sourcepub fn default_accept_fee_base() -> u64
pub fn default_accept_fee_base() -> u64
Default listener port
sourcepub fn owner_api_listen_port(&self) -> u16
pub fn owner_api_listen_port(&self) -> u16
Use value from config file, defaulting to sensible value if missing.
sourcepub fn owner_api_listen_addr(&self) -> String
pub fn owner_api_listen_addr(&self) -> String
Owner API listen address
sourcepub fn accept_fee_base(&self) -> u64
pub fn accept_fee_base(&self) -> u64
Accept fee base
Trait Implementations§
source§impl Clone for WalletConfig
impl Clone for WalletConfig
source§fn clone(&self) -> WalletConfig
fn clone(&self) -> WalletConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for WalletConfig
impl Debug for WalletConfig
source§impl Default for WalletConfig
impl Default for WalletConfig
source§fn default() -> WalletConfig
fn default() -> WalletConfig
source§impl<'de> Deserialize<'de> for WalletConfig
impl<'de> Deserialize<'de> for WalletConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl PartialEq for WalletConfig
impl PartialEq for WalletConfig
source§fn eq(&self, other: &WalletConfig) -> bool
fn eq(&self, other: &WalletConfig) -> bool
self
and other
values to be equal, and is used
by ==
.