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
Source:

Methods

getCacheData()

Source:

getFs()

Source:

getKeysData()

Source:

getLanguage()

Source:

getMnemonic()

Source:

getNetworkType()

Source:

getPassword()

Source:

getPath()

Source:

getPrimaryAddress()

Source:

getPrivateSpendKey()

Source:

getPrivateViewKey()

Source:

getProxyToWorker()

Source:

getRejectUnauthorized()

Source:

getRestoreHeight()

Source:

getSaveCurrent()

Source:

getSeedOffset()

Source:

getServer()

Source:

getServerPassword()

Source:

getServerUri()

Source:

getServerUsername()

Source:

setCacheData()

Source:

setFs()

Source:

setKeysData()

Source:

setLanguage()

Source:

setMnemonic()

Source:

setNetworkType()

Source:

setPassword()

Source:

setPath()

Source:

setPrimaryAddress()

Source:

setPrivateSpendKey()

Source:

setPrivateViewKey()

Source:

setProxyToWorker()

Source:

setRejectUnauthorized()

Source:

setRestoreHeight()

Source:

setSaveCurrent()

Source:

setSeedOffset()

Source:

setServer()

Source:

setServerPassword()

Source:

setServerUri()

Source:

setServerUsername()

Source:

toJson()

Source: