public RemoteRPCNode(int port, string neoscanURL, NEONodesKind kind) : base(neoscanURL) { switch (kind) { case NEONodesKind.NEO_ORG: { nodes = new string[5]; for (int i = 0; i < nodes.Length; i++) { nodes[i] = $"http://seed{i}.neo.org:{port}"; } break; } case NEONodesKind.COZ: { if (port == 10331) { port = 443; } nodes = new string[5]; for (int i = 0; i < nodes.Length; i++) { nodes[i] = $"http://seed{i}.cityofzion.io:{port}"; } break; } case NEONodesKind.TRAVALA: { nodes = new string[5]; for (int i = 0; i < nodes.Length; i++) { nodes[i] = $"http://seed{i}.travala.com:{port}"; } break; } } }
public static NeoRPC ForMainNet(NEONodesKind kind = NEONodesKind.COZ) { return(new RemoteRPCNode(10332, "http://neoscan.io", kind)); }