Class: Environment

Environment(settingsopt) → {Environment}

Interact with the user's Environment.

Constructor

new Environment(settingsopt) → {Environment}

Create an instance of Environment.
Parameters:
Name Type Attributes Description
settings Object <optional>
Settings for the Fabric environment.
Source:
Returns:
Instance of the Environment.
Type
Environment

Methods

readVariable(name) → {String}

Read a variable from the environment.
Parameters:
Name Type Description
name String Variable name to read.
Source:
Returns:
Value of the variable (or an empty string).
Type
String

setWallet(wallet, force) → {Environment}

Configure the Environment to use a Fabric Wallet.
Parameters:
Name Type Default Description
wallet Wallet Wallet to attach.
force Boolean false Force existing wallets to be destroyed.
Source:
Returns:
The Fabric Environment.
Type
Environment

start() → {Environment}

Start the Environment.
Source:
Returns:
The Fabric Environment.
Type
Environment