@xyo-network/xl1-rpc 1.24.42 → 1.25.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.
@@ -105,9 +105,9 @@ var rpcMethodHandlersFromViewer = (viewer) => {
105
105
  xyoViewer_stakeByStaker: (params) => viewer.stakeByStaker(...params ?? []),
106
106
  xyoViewer_stakesByStaked: (params) => viewer.stakesByStaked(...params ?? []),
107
107
  xyoViewer_stakesByStaker: (params) => viewer.stakesByStaker(...params ?? []),
108
- xyoViewer_transactionByBlockHashAndIndex: (params) => viewer.transactionByBlockHashAndIndex(...params ?? []),
109
- xyoViewer_transactionByBlockNumberAndIndex: (params) => viewer.transactionByBlockNumberAndIndex(...params ?? []),
110
- xyoViewer_transactionByHash: (params) => viewer.transactionByHash(...params ?? []),
108
+ xyoViewer_transactionByBlockHashAndIndex: (params) => viewer.transaction.byBlockHashAndIndex(...params ?? []),
109
+ xyoViewer_transactionByBlockNumberAndIndex: (params) => viewer.transaction.byBlockNumberAndIndex(...params ?? []),
110
+ xyoViewer_transactionByHash: (params) => viewer.transaction.byHash(...params ?? []),
111
111
  xyoViewer_payloadsByHash: (params) => viewer.payloadsByHash(...params ?? [])
112
112
  };
113
113
  };
@@ -2235,7 +2235,7 @@ var JsonRpcTransactionViewer = class extends AbstractJsonRpcViewer {
2235
2235
  const blockTransactionBoundWitnesses = blockBoundWitnesses.filter(isTransactionBoundWitnessWithHashMeta);
2236
2236
  const transaction = blockTransactionBoundWitnesses.at(transactionIndex);
2237
2237
  if (!transaction) return null;
2238
- return await this.transactionByHash(transaction._hash);
2238
+ return await this.byHash(transaction._hash);
2239
2239
  } catch {
2240
2240
  return null;
2241
2241
  }
@@ -2246,7 +2246,7 @@ var JsonRpcTransactionViewer = class extends AbstractJsonRpcViewer {
2246
2246
  try {
2247
2247
  const block = await this.blockViewer.blockByNumber(blockNumber);
2248
2248
  if (!block) return null;
2249
- return await this.transactionByBlockHashAndIndex(block[0]._hash, transactionIndex);
2249
+ return await this.byBlockHashAndIndex(block[0]._hash, transactionIndex);
2250
2250
  } catch {
2251
2251
  return null;
2252
2252
  }