Module: protocol/networks

Members

(static, constant) activationThreshold :Number

For versionbits.

Type:
  • Number
Default Value:
  • 1916
Source:

(static) addressPrefix :Number

Address prefixes.

Type:
  • Number
Properties:
Name Type Description
pubkeyhash Number
scripthash Number
witnesspubkeyhash Number
witnessscripthash Number
bech32 Number
Source:

(static, constant) bip30 :Object

Map of historical blocks which create duplicate transactions hashes.

Type:
  • Object
Default Value:
  • {"undefined":""}
Source:
See:

(static) block :Number

Block constants.

Type:
  • Number
Properties:
Name Type Description
bip34height Number

Height at which bip34 was activated. Used for avoiding bip30 checks.

bip34hash Number

Hash of the block that activated bip34.

bip65height Number

Height at which bip65 was activated.

bip65hash Number

Hash of the block that activated bip65.

bip66height Number

Height at which bip66 was activated.

bip66hash Number

Hash of the block that activated bip66.

pruneAfterHeight Number

Safe height to start pruning.

keepBlocks Number

Safe number of blocks to keep.

maxTipAge Number

Age used for the time delta to determine whether the chain is synced.

slowHeight Number

Height at which block processing is slow enough that we can output logs without spamming.

Default Value:
  • {"bip34height":227931,"bip34hash":"","bip65height":388381,"bip65hash":"","bip66height":363725,"bip66hash":"","pruneAfterHeight":1000,"keepBlocks":288,"maxTipAge":"","slowHeight":325000}
Source:

(static, constant) checkpointMap :Object

Checkpoint block list.

Type:
  • Object
Source:

(static, constant) deployments :Object

Deployments for versionbits.

Type:
  • Object
Default Value:
  • {"csv":"","segwit":"","segsignal":"","testdummy":""}
Source:

(static, constant) deploys :Array

Deployments for versionbits (array form, sorted).

Type:
  • Array
Default Value:
  • ["main.deployments.csv","main.deployments.segwit","main.deployments.segsignal","main.deployments.testdummy"]
Source:

(static, constant) feeRate :Rate

Default normal relay rate.

Type:
Default Value:
  • 100000
Source:

(static, constant) genesis :Object

Genesis block header.

Type:
  • Object
Source:

(static, constant) genesisBlock :String

The network's genesis block in a hex string.

Type:
  • String
Source:

(static, constant) halvingInterval :Number

Type:
  • Number
Default Value:
  • 210000
Source:

(static) keyPrefix :Number

Key prefixes.

Type:
  • Number
Properties:
Name Type Description
privkey Number
xpubkey Number
xprivkey Number
xpubkey58 Number
xprivkey58 Number
coinType Number
Default Value:
  • {"privkey":128,"xpubkey":76067358,"xprivkey":76066276,"xpubkey58":"xpub","xprivkey58":"xprv","coinType":0}
Source:

(static, constant) lastCheckpoint :Number

Last checkpoint height.

Type:
  • Number
Default Value:
  • 525000
Source:

(static, constant) magic :Number

Packet magic number.

Type:
  • Number
Default Value:
  • 3652501241
Source:

(static, constant) maxFeeRate :Rate

Maximum normal relay rate.

Type:
Default Value:
  • 400000
Source:

(static, constant) minerWindow :Number

Confirmation window for versionbits.

Type:
  • Number
Default Value:
  • 2016
Source:

(static, constant) minRelay :Rate

Default min relay rate.

Type:
Default Value:
  • 1000
Source:

(static, constant) network.types :Array.<String>

Network type list.

Type:
  • Array.<String>
Default Value:
  • ["main","testnet","regtest","simnet"]
Source:

(static, constant) port :Number

Default network port.

Type:
  • Number
Default Value:
  • 8333
Source:

(static) pow :Number

POW-related constants.

Type:
  • Number
Properties:
Name Type Description
limit BN

Default target.

bits Number

Compact pow limit.

chainwork BN

Minimum chainwork for best chain.

targetTimespan Number

Desired retarget period in seconds.

targetSpacing Number

Average block time.

retargetInterval Number

Retarget interval in blocks.

targetReset Boolean

Whether to reset target if a block has not been mined recently.

noRetargeting Boolean

Do not allow retargetting.

Default Value:
  • {"limit":"","bits":486604799,"chainwork":"","targetTimespan":"","targetSpacing":"","retargetInterval":2016,"targetReset":false,"noRetargeting":false}
Source:

(static, constant) requestMempool :Boolean

Whether to request mempool on sync.

Type:
  • Boolean
Source:

(static, constant) requireStandard :Boolean

Default value for whether the mempool accepts non-standard transactions.

Type:
  • Boolean
Default Value:
  • true
Source:

(static, constant) rpcPort :Number

Default http port.

Type:
  • Number
Default Value:
  • 8332
Source:

(static, constant) seeds :Array.<String>

Default DNS seeds.

Type:
  • Array.<String>
Default Value:
  • ["seed.bitcoin.sipa.be","dnsseed.bluematt.me","dnsseed.bitcoin.dashjr.org","seed.bitcoinstats.com","seed.bitcoin.jonasschnelli.ch","seed.btc.petertodd.org","seed.bitcoin.sprovoost.nl","dnsseed.emzy.de"]
Source:

(static, constant) selfConnect :Boolean

Whether to allow self-connection.

Type:
  • Boolean
Source:

(static, constant) type :String

Symbolic network type.

Type:
  • String
Default Value:
  • main
Source:

(static, constant) walletPort :Number

Default wallet port.

Type:
  • Number
Default Value:
  • 8334
Source: