@solana/web3.js 1.25.1 → 1.26.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/lib/index.iife.js CHANGED
@@ -19912,6 +19912,21 @@ var solanaWeb3 = (function (exports) {
19912
19912
 
19913
19913
  return res.result;
19914
19914
  }
19915
+ /**
19916
+ * Fetch the genesis hash
19917
+ */
19918
+
19919
+
19920
+ async getGenesisHash() {
19921
+ const unsafeRes = await this._rpcRequest('getGenesisHash', []);
19922
+ const res = create(unsafeRes, jsonRpcResult(string()));
19923
+
19924
+ if ('error' in res) {
19925
+ throw new Error('failed to get genesis hash: ' + res.error.message);
19926
+ }
19927
+
19928
+ return res.result;
19929
+ }
19915
19930
  /**
19916
19931
  * Fetch a processed block from the cluster.
19917
19932
  */