@neuraiproject/neurai-rpc 0.9.0 → 0.9.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.9.1
2
+
3
+ - Testnet reset of 2026-11-05: `TESTNET_GENESIS_HASH` is now `000000c710413a4265a996d30c86043aedef6a563900f1bc43fea61d5b2dc77d`, so `assertRpcGenesis(rpc, TESTNET_GENESIS_HASH)` rejects a node of the previous testnet. The client and the method catalog are unchanged.
4
+
1
5
  # 0.9.0
2
6
 
3
7
  - Follow the node's RBF removal (no-RBF sequence rule): drop `bumpfee` from the method catalog, drop the `replaceable` argument from `sendtoaddress` / `sendfromaddress` / `sendmany` and the `bip125-replaceable` field from `gettransaction` / `listtransactions` / `listsinceblock`, and document the allowed `createrawtransaction` sequences.
package/dist/index.cjs CHANGED
@@ -5864,7 +5864,7 @@ function assertNoDuplicateJsonKeys(text) {
5864
5864
 
5865
5865
  // index.ts
5866
5866
  var MAINNET_GENESIS_HASH = "00000044d33c0c0ba019be5c0249730424a69cb4c222153322f68c6104484806";
5867
- var TESTNET_GENESIS_HASH = "0000008b384aeffecdab182575dc4e86c9f07f90318c65088532660ed9a8a021";
5867
+ var TESTNET_GENESIS_HASH = "000000c710413a4265a996d30c86043aedef6a563900f1bc43fea61d5b2dc77d";
5868
5868
  async function assertRpcGenesis(rpc, expectedGenesisHash) {
5869
5869
  const actual = await rpc("getblockhash", [0]);
5870
5870
  if (typeof actual !== "string" || actual.toLowerCase() !== expectedGenesisHash.toLowerCase()) {
package/dist/index.d.cts CHANGED
@@ -291,7 +291,7 @@ declare function createDepinNodeRouter<T extends RpcNode>(healthyNodes: () => T[
291
291
  declare function assertNoDuplicateJsonKeys(text: string): void;
292
292
 
293
293
  declare const MAINNET_GENESIS_HASH = "00000044d33c0c0ba019be5c0249730424a69cb4c222153322f68c6104484806";
294
- declare const TESTNET_GENESIS_HASH = "0000008b384aeffecdab182575dc4e86c9f07f90318c65088532660ed9a8a021";
294
+ declare const TESTNET_GENESIS_HASH = "000000c710413a4265a996d30c86043aedef6a563900f1bc43fea61d5b2dc77d";
295
295
  /** Reject an RPC endpoint that serves a different chain with the same network label. */
296
296
  declare function assertRpcGenesis(rpc: (method: string, params: any[]) => Promise<unknown>, expectedGenesisHash: string): Promise<void>;
297
297
  /** Exact decimal parameter, emitted as a JSON number rather than a quoted string. */
package/dist/index.d.ts CHANGED
@@ -291,7 +291,7 @@ declare function createDepinNodeRouter<T extends RpcNode>(healthyNodes: () => T[
291
291
  declare function assertNoDuplicateJsonKeys(text: string): void;
292
292
 
293
293
  declare const MAINNET_GENESIS_HASH = "00000044d33c0c0ba019be5c0249730424a69cb4c222153322f68c6104484806";
294
- declare const TESTNET_GENESIS_HASH = "0000008b384aeffecdab182575dc4e86c9f07f90318c65088532660ed9a8a021";
294
+ declare const TESTNET_GENESIS_HASH = "000000c710413a4265a996d30c86043aedef6a563900f1bc43fea61d5b2dc77d";
295
295
  /** Reject an RPC endpoint that serves a different chain with the same network label. */
296
296
  declare function assertRpcGenesis(rpc: (method: string, params: any[]) => Promise<unknown>, expectedGenesisHash: string): Promise<void>;
297
297
  /** Exact decimal parameter, emitted as a JSON number rather than a quoted string. */
package/dist/index.mjs CHANGED
@@ -5828,7 +5828,7 @@ function assertNoDuplicateJsonKeys(text) {
5828
5828
 
5829
5829
  // index.ts
5830
5830
  var MAINNET_GENESIS_HASH = "00000044d33c0c0ba019be5c0249730424a69cb4c222153322f68c6104484806";
5831
- var TESTNET_GENESIS_HASH = "0000008b384aeffecdab182575dc4e86c9f07f90318c65088532660ed9a8a021";
5831
+ var TESTNET_GENESIS_HASH = "000000c710413a4265a996d30c86043aedef6a563900f1bc43fea61d5b2dc77d";
5832
5832
  async function assertRpcGenesis(rpc, expectedGenesisHash) {
5833
5833
  const actual = await rpc("getblockhash", [0]);
5834
5834
  if (typeof actual !== "string" || actual.toLowerCase() !== expectedGenesisHash.toLowerCase()) {
package/index.ts CHANGED
@@ -8,7 +8,7 @@ import { assertNoDuplicateJsonKeys } from './json';
8
8
  import { isDepinRemoteMethod } from './depin';
9
9
 
10
10
  export const MAINNET_GENESIS_HASH = '00000044d33c0c0ba019be5c0249730424a69cb4c222153322f68c6104484806';
11
- export const TESTNET_GENESIS_HASH = '0000008b384aeffecdab182575dc4e86c9f07f90318c65088532660ed9a8a021';
11
+ export const TESTNET_GENESIS_HASH = '000000c710413a4265a996d30c86043aedef6a563900f1bc43fea61d5b2dc77d';
12
12
 
13
13
  /** Reject an RPC endpoint that serves a different chain with the same network label. */
14
14
  export async function assertRpcGenesis(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neuraiproject/neurai-rpc",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "Helps you access your Neurai full node using RPC from JavaScript",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",