Class: Environment

Environment

new Environment()

A bcoin "environment" which exposes all constructors for primitives, the blockchain, mempool, wallet, etc. It also exposes a global worker pool.

Properties:
Name Type Description
env function

See Environment.

require function

See module:utils/lazy.

bn function

See {@url https://github.com/indutny/bn.js}.

elliptic Object

See {@url https://github.com/indutny/elliptic}.

bip70 Object

See module:bip70.

blockchain Object

See module:blockchain.

chain function

See module:blockchain.Chain.

chaindb function

See module:blockchain.ChainDB.

chainentry function

See module:blockchain.ChainEntry.

btc Object
amount function
uri function
coins Object
coinview function
crypto Object
ec Object
pk Object
schnorr Object
db Object
ldb Object
hd Object
http Object
rpc Object
txmempool Object
fees Object
mempool Object
mempoolentry Object
mining Object
miner Object
minerblock Object
net Object
bip150 Object
bip151 Object
bip152 Object
dns Object
packets Object
peer Object
pool Object
tcp Object
node Object
config Object
fullnode Object
logger Object
spvnode Object
primitives Object
address Object
block Object
coin Object
headers Object
input Object
invitem Object
keyring Object
merkleblock Object
mtx Object
netaddress Object
outpoint Object
output Object
tx Object
protocol Object
consensus Object
errors Object
network Object
networks Object
policy Object
timedata Object
txscript Object
opcodes Object
program Object
script Object
sigcache Object
stack Object
witness Object
utils Object
base32 Object
base58 Object
bloom Object
co Object
encoding Object
lock Object
reader Object
staticwriter Object
util Object
writer Object
wallet Object
path Object
walletkey Object
walletdb Object
workers Object
workerpool Object
Source:

Methods

cache()

Cache all necessary modules.

Source:

now() → {Number}

Get the adjusted time of the default network.

Source:
Returns:

Adjusted time.

Type
Number

set(options)

Set the default network.

Parameters:
Name Type Description
options String
Source: