forked from hyperbit-dev/chains
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dash.ts
74 lines (69 loc) · 1.35 KB
/
dash.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/* source:
https://github.com/dashpay/dash/blob/master/src/chainparams.cpp
*/
import { Common, Network, TestNetwork } from '../types';
const common: Common = {
name: 'Dash',
decimalPlaces: 1e8,
unit: 'DASH',
};
const main: Network = {
...common,
hashGenesisBlock:
'00000ffd590b1485b3caadc19b22e6379c733355108f107a430458cdf3407ab6',
// nDefaultPort
port: 9999,
portRpc: 9998,
protocol: {
magic: 0xbd6b0cbf, // careful, sent over wire as little endian
},
// vSeeds
seedsDns: [
'dash.org',
'dnsseed.dash.org',
'dashdot.io',
'dnsseed.dashdot.io',
'masternode.io',
'dnsseed.masternode.io',
'dashpay.io',
'dnsseed.dashpay.io',
],
// base58Prefixes
versions: {
bip32: {
private: 0x0488ade4,
public: 0x0488b21e,
},
bip44: 5,
private: 0xcc,
public: 0x4c,
scripthash: 0x10,
},
};
const test: TestNetwork = {
...common,
hashGenesisBlock:
'00000bafbc94add76cb75e2ec92894837288a481e5c005f6563d91623bf8bc2c',
port: 19999,
portRpc: 19998,
seedsDns: [
'dashdot.io',
'testnet-seed.dashdot.io',
'masternode.io',
'test.dnsseed.masternode.io',
],
versions: {
bip32: {
private: 0x04358394,
public: 0x043587cf,
},
bip44: 1,
private: 0xef,
public: 0x8c,
scripthash: 0x13,
},
};
export const dash = {
main,
test,
};