forked from isarq/nem-sdk-go
/
nodes.go
130 lines (109 loc) · 2.87 KB
/
nodes.go
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
package model
type SearchTestnet struct {
Url, Location string
}
type NetNode struct {
Uri string
}
// The default testnet node
//const DefaultTestnet = `http://bigalice2.nem.ninja`
const DefaultTestnet = `http://192.3.61.243`
// The default mainnet node
const DefaultMainnet = `http://alice6.nem.ninja`
// The default mijin node
const DefaultMijin = ``
// The default mainnet block explorer
const MainnetExplorer = `http://chain.nem.ninja/#/transfer/`
// The default testnet block explorer
const TestnetExplorer = `http://bob.nem.ninja:8765/#/transfer/`
// The default mijin block explorer
const MijinExplorer = ``
// The nodes allowing search by transaction hash on testnet
// type slice Location
var SearchOnTestnet = []SearchTestnet{
{
Url: `http://bigalice2.nem.ninja`,
Location: `America / New_York`,
}, {
Url: `http://192.3.61.243`,
Location: `America / Los_Angeles`,
}, {
Url: `http://23.228.67.85`,
Location: `America / Los_Angeles`,
},
}
// The nodes allowing search by transaction hash on mainnet
// type slice
var SearchOnMainnet = []SearchTestnet{
{
Url: `http: //62.75.171.41`,
Location: `Germany`,
}, {
Url: `http: //104.251.212.131`,
Location: `USA`,
}, {
Url: `http: //45.124.65.125`,
Location: `Hong Kong`,
}, {
Url: `http: //185.53.131.101`,
Location: `Netherlands`,
}, {
Url: `http: //sz.nemchina.com`,
Location: `China`,
},
}
// The nodes allowing search by transaction hash on mijin
// type slice
var SearchOnMijin = []SearchTestnet{
{
Url: ``,
Location: ``,
},
}
// The testnet nodes
// type slice
var TestnetNode = []NetNode{
{Uri: `http://104.128.226.60`},
{Uri: `http: //23.228.67.85`},
{Uri: `http: //192.3.61.243`},
{Uri: `http: //50.3.87.123`},
{Uri: `http: //localhost`},
}
// The mainnet nodes
// type slice
var MainnetNode = []NetNode{
{Uri: `http: //62.75.171.41`},
{Uri: `ttp: //san.nem.ninja`},
{Uri: `http: //go.nem.ninja`},
{Uri: `http: //hachi.nem.ninja`},
{Uri: `http: //jusan.nem.ninja`},
{Uri: `http: //nijuichi.nem.ninja`},
{Uri: `http: //alice2.nem.ninja`},
{Uri: `http: //alice3.nem.ninja`},
{Uri: `http: //alice4.nem.ninja`},
{Uri: `http: //alice5.nem.ninja`},
{Uri: `http: //alice6.nem.ninja`},
{Uri: `http: //alice7.nem.ninja`},
{Uri: `http: //localhost`},
}
// The mijin nodes
// type slice
var MijinNode = []NetNode{
{
Uri: ``,
},
}
// The server verifying signed apostilles
const ApostilleAuditServer = `http://185.117.22.58:4567/verify`
// The API to get all supernodes
const Supernodes = `https://supernodes.nem.io/nodes`
// The API to get XEM/BTC market data
const MarketInfo = `https://poloniex.com/public`
//The API to get BTC/USD market data
const BtcPrice = `https://blockchain.info/ticker`
// The default endpoint port
const DefaultPort = 7890
// The Mijin endpoint port
const mijinPort = 7895
// The websocket port
const WebsocketPort = 7778