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

(static, constant) bip30 :Object

Map of historical blocks which create duplicate transactions hashes.

Type:
  • Object
Default Value:
  • {"undefined":"21d77ccb4c08386a04ac0196ae10f6a1d2c2a377558ca190f143070000000000"}
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":"b808089c756add1591b1d17bab44bba3fed9e02f942ab4894b02000000000000","bip65height":388381,"bip65hash":"f035476cfaeb9f677c2cdad00fd908c556775ded24b6c2040000000000000000","bip66height":363725,"bip66hash":"3109b588941188a9f1c2576aae462d729b8cce9da1ea79030000000000000000","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:
  • {"testdummy":"","csv":"","segwit":"","mast":""}
Source:

(static, constant) deploys :Array

Deployments for versionbits (array form, sorted).

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

(static, constant) feeRate :Rate

Default normal relay rate.

Type:
Default Value:
  • 50000
Source:

(static, constant) genesis :NakedBlock

Genesis block header.

Type:
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
xprivkey58 Number
xpubkey58 Number
coinType Number
Default Value:
  • {"privkey":128,"xpubkey":76067358,"xprivkey":76066276,"xprivkey58":"xprv","xpubkey58":"xpub","coinType":0}
Source:

(static, constant) lastCheckpoint :Number

Last checkpoint height.

Type:
  • Number
Default Value:
  • 420000
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:
  • 150000
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","segnet4","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 seeds.

Type:
  • Array:.<String:>
Default Value:
  • ["dnsseed.bluematt.me","dnsseed.bitcoin.dashjr.org","seed.bitcoinstats.com","bitseed.xf2.org","seed.bitcoin.jonasschnelli.ch"]
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: