blue-js-sdk 2.7.0 → 2.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/defaults.js +38 -16
  2. package/package.json +1 -1
package/defaults.js CHANGED
@@ -25,12 +25,14 @@ axios.defaults.adapter = 'http';
25
25
  // This is the npm/semver version for consumers. Internal development iterations
26
26
  // (v20, v21, v22, etc.) track feature milestones and are not exposed as exports.
27
27
 
28
- export const SDK_VERSION = '2.4.0';
28
+ export const SDK_VERSION = '2.7.1';
29
29
 
30
30
  // ─── Timestamps ──────────────────────────────────────────────────────────────
31
31
 
32
- /** When these defaults were last verified against the live chain */
33
- export const LAST_VERIFIED = '2026-03-08T00:00:00Z';
32
+ /** When these defaults were last verified against the live chain.
33
+ * RPC + LCD endpoint lists refreshed 2026-05-02 (audit-rpc-endpoints.mjs).
34
+ * Other defaults (gas, transport rates, etc.) still 2026-03-08. */
35
+ export const LAST_VERIFIED = '2026-05-02T00:00:00Z';
34
36
 
35
37
  /** Human-readable note for builders */
36
38
  export const HARDCODED_NOTE = 'Static defaults — no RPC query server yet. Verify endpoints are live before production use. See README.md "Hardcoded Defaults" section.';
@@ -44,28 +46,48 @@ export const CHAIN_VERSION = 'v12.0.0'; // sentinelhub version
44
46
  export const COSMOS_SDK_VERSION = '0.47.17';
45
47
 
46
48
  // ─── RPC Endpoints (TX broadcast) ────────────────────────────────────────────
47
- // Ordered by reliability. Primary is tried first, fallbacks on failure.
48
- // Verified reachable 2026-03-08.
49
+ // Latency-sorted list of endpoints that passed consensus health check on
50
+ // 2026-05-02. "Healthy" means: connects, /status reports catching_up=false,
51
+ // and the bank balance for a known address matches the modal answer across
52
+ // all responding candidates within 50 blocks of tip. Run
53
+ // `node tools/audit-rpc-endpoints.mjs` to refresh.
54
+ //
55
+ // rpc.sentinel.co / lcd.sentinel.co are intentionally excluded: on 2026-05-02
56
+ // they were ~22k blocks behind tip and returning 0 for funded addresses while
57
+ // reporting catching_up=false on /status. Consumers that need them can add
58
+ // them at runtime via addRpcEndpoint() / addLcdEndpoint().
49
59
 
50
60
  export const RPC_ENDPOINTS = [
51
- { url: 'https://rpc.sentinel.co:443', name: 'Sentinel Official', verified: '2026-03-08' },
52
- { url: 'https://sentinel-rpc.polkachu.com', name: 'Polkachu', verified: '2026-03-08' },
53
- { url: 'https://rpc.mathnodes.com', name: 'MathNodes', verified: '2026-03-08' },
54
- { url: 'https://sentinel-rpc.publicnode.com', name: 'PublicNode', verified: '2026-03-08' },
55
- { url: 'https://rpc.sentinel.quokkastake.io', name: 'QuokkaStake', verified: '2026-03-08' },
61
+ { url: 'https://rpc-sentinel.busurnode.com', name: 'Busurnode', verified: '2026-05-02' },
62
+ { url: 'https://rpc.trinitystake.io', name: 'Trinity Stake', verified: '2026-05-02' },
63
+ { url: 'https://sentinel-rpc.publicnode.com', name: 'PublicNode (Allnodes)', verified: '2026-05-02' },
64
+ { url: 'https://sentinel-rpc.polkachu.com', name: 'Polkachu', verified: '2026-05-02' },
65
+ { url: 'https://rpc.mathnodes.com', name: 'MathNodes', verified: '2026-05-02' },
66
+ { url: 'https://rpc.dvpn.roomit.xyz', name: 'Roomit', verified: '2026-05-02' },
67
+ { url: 'https://rpc.sentinel.suchnode.net', name: 'SuchNode', verified: '2026-05-02' },
68
+ { url: 'https://rpc.sentinel.chaintools.tech', name: 'ChainTools', verified: '2026-05-02' },
69
+ { url: 'https://rpc.sentinel.validatus.com', name: 'Validatus', verified: '2026-05-02' },
70
+ { url: 'https://rpc.sentinel.quokkastake.io', name: 'QuokkaStake', verified: '2026-05-02' },
71
+ { url: 'https://rpc.sentineldao.com', name: 'Sentinel Growth DAO', verified: '2026-05-02' },
72
+ { url: 'https://rpc-sentinel.chainvibes.com', name: 'ChainVibes', verified: '2026-05-02' },
56
73
  ];
57
74
 
58
75
  export const DEFAULT_RPC = RPC_ENDPOINTS[0].url;
59
76
 
60
77
  // ─── LCD Endpoints (REST queries) ────────────────────────────────────────────
61
- // Ordered by reliability. All have same limitations (v3 providers = 501, plan details = 501).
62
- // Verified reachable 2026-03-08.
78
+ // Same consensus methodology as RPC. lcd.sentinel.co excluded for the same
79
+ // stale-state reason.
63
80
 
64
81
  export const LCD_ENDPOINTS = [
65
- { url: 'https://lcd.sentinel.co', name: 'Sentinel Official', verified: '2026-03-08' },
66
- { url: 'https://sentinel-api.polkachu.com', name: 'Polkachu', verified: '2026-03-08' },
67
- { url: 'https://api.sentinel.quokkastake.io', name: 'QuokkaStake', verified: '2026-03-08' },
68
- { url: 'https://sentinel-rest.publicnode.com', name: 'PublicNode', verified: '2026-03-08' },
82
+ { url: 'https://api-sentinel.busurnode.com', name: 'Busurnode', verified: '2026-05-02' },
83
+ { url: 'https://sentinel-rest.publicnode.com', name: 'PublicNode (Allnodes)', verified: '2026-05-02' },
84
+ { url: 'https://api.sentinel.suchnode.net', name: 'SuchNode', verified: '2026-05-02' },
85
+ { url: 'https://sentinel-api.polkachu.com', name: 'Polkachu', verified: '2026-05-02' },
86
+ { url: 'https://api.dvpn.roomit.xyz', name: 'Roomit', verified: '2026-05-02' },
87
+ { url: 'https://api.sentinel.quokkastake.io', name: 'QuokkaStake', verified: '2026-05-02' },
88
+ { url: 'https://api.sentinel.chaintools.tech', name: 'ChainTools', verified: '2026-05-02' },
89
+ { url: 'https://api-sentinel.chainvibes.com', name: 'ChainVibes', verified: '2026-05-02' },
90
+ { url: 'https://api.sentinel.validatus.com', name: 'Validatus', verified: '2026-05-02' },
69
91
  ];
70
92
 
71
93
  export const DEFAULT_LCD = LCD_ENDPOINTS[0].url;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blue-js-sdk",
3
- "version": "2.7.0",
3
+ "version": "2.7.1",
4
4
  "description": "Decentralized VPN SDK for the Sentinel P2P bandwidth network. WireGuard + V2Ray tunnels, Cosmos blockchain, 900+ nodes. Tested on Windows. macOS/Linux support included but untested.",
5
5
  "type": "module",
6
6
  "main": "index.js",