# Class: MoneroWalletConfig

## MoneroWalletConfig(config)

Configuration to create a Monero wallet.

## Constructor

#### new MoneroWalletConfig(config)

Construct a configuration to open or create a wallet.

##### Parameters:

Name | Type | Description
--- | --- | ---
`config` | object | MoneroWalletConfig | MoneroWalletConfig or equivalent config object ###### Properties
Name | Type | Description
--- | --- | ---
`path` | string | path of the wallet to open or create
`password` | string | password of the wallet to open
`networkType` | string | number | network type of the wallet to open (one of "mainnet", "testnet", "stagenet" or MoneroNetworkType.MAINNET|TESTNET|STAGENET)
`serverUri` | string | uri of the wallet's server (optional)
`serverUsername` | string | username of the wallet's server (optional)
`serverPassword` | string | password of the wallet's server (optional)
`rejectUnauthorized` | boolean | reject self-signed server certificates if true (default true)
`server` | MoneroRpcConnection | object | MoneroRpcConnection or equivalent JS object configuring the server connection (optional)
`keysData` | Uint8Array | wallet keys data to open (optional)
`cacheData` | Uint8Array | wallet cache data to open (optional)
`proxyToWorker` | boolean | proxies wallet operations to a worker in order to not block the main thread (default true)
`fs` | fs | Node.js compatible file system to use (defaults to disk or in-memory FS if browser)
`saveCurrent` | boolean | specifies if the current RPC wallet should be saved before being closed
`accountLookahead` | number | number of accounts to scan (optional)
`subaddressLookahead` | number | number of subaddresses to scan per account (optional)

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 9

### Methods

#### getAccountLookahead()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 243

#### getCacheData()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 234

#### getFs()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 216

#### getKeysData()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 225

#### getLanguage()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 189

#### getMnemonic()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 135

#### getNetworkType()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 77

#### getPassword()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 68

#### getPath()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 59

#### getPrimaryAddress()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 153

#### getPrivateSpendKey()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 171

#### getPrivateViewKey()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 162

#### getProxyToWorker()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 207

#### getRejectUnauthorized()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 126

#### getRestoreHeight()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 180

#### getSaveCurrent()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 198

#### getSeedOffset()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 144

#### getServer()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 86

#### getServerPassword()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 117

#### getServerUri()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 99

#### getServerUsername()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 108

#### getSubaddressLookahead()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 252

#### setAccountLookahead()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 247

#### setCacheData()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 238

#### setFs()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 220

#### setKeysData()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 229

#### setLanguage()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 193

#### setMnemonic()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 139

#### setNetworkType()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 81

#### setPassword()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 72

#### setPath()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 63

#### setPrimaryAddress()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 157

#### setPrivateSpendKey()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 175

#### setPrivateViewKey()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 166

#### setProxyToWorker()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 211

#### setRejectUnauthorized()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 130

#### setRestoreHeight()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 184

#### setSaveCurrent()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 202

#### setSeedOffset()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 148

#### setServer()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 90

#### setServerPassword()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 121

#### setServerUri()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 103

#### setServerUsername()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 112

#### setSubaddressLookahead()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 256

#### toJson()

Source:
  - src/main/js/wallet/model/MoneroWalletConfig.js, line 53