Skip to content

Unable to make either public/private transactions #298

@alstonhuang97

Description

@alstonhuang97

I successfully created the nodes.

*************************************
Quorum Dev Quickstart 
*************************************
----------------------------------
List endpoints and services
----------------------------------
JSON-RPC HTTP service endpoint                 : http://localhost:8545
JSON-RPC WebSocket service endpoint            : ws://localhost:8546
Web block explorer address                     : http://localhost:25000/explorer/nodes
Prometheus address                             : http://localhost:9090/graph
Grafana address                                : http://localhost:3000/d/XE4V0WGZz/besu-overview?orgId=1&refresh=10s&from=now-30m&to=now&var-system=All
Collated logs using Grafana and Loki           : http://localhost:3000/d/Ak6eXLsPxFemKYKEXfcH/quorum-logs-loki?orgId=1&var-app=besu&var-search=

For more information on the endpoints and services, refer to README.md in the installation directory.
****************************************************************

Then I would like to create a transaction, but I failed.

alstonhuang@Alstons-MacBook-Pro smart_contracts % npm install
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @nomicfoundation/hardhat-chai-matchers@1.0.6
npm error Found: ethers@6.15.0
npm error node_modules/ethers
npm error   ethers@"^6.15.0" from the root project
npm error   peer ethers@"^6.14.0" from @nomicfoundation/hardhat-ethers@3.1.0
npm error   node_modules/@nomicfoundation/hardhat-ethers
npm error     @nomicfoundation/hardhat-ethers@"^3.0.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer ethers@"^5.0.0" from @nomicfoundation/hardhat-chai-matchers@1.0.6
npm error node_modules/@nomicfoundation/hardhat-chai-matchers
npm error   peer @nomicfoundation/hardhat-chai-matchers@"^1.0.0" from @nomicfoundation/hardhat-toolbox@2.0.0
npm error   node_modules/@nomicfoundation/hardhat-toolbox
npm error     @nomicfoundation/hardhat-toolbox@"^2.0.0" from the root project
npm error
npm error Conflicting peer dependency: ethers@5.8.0
npm error node_modules/ethers
npm error   peer ethers@"^5.0.0" from @nomicfoundation/hardhat-chai-matchers@1.0.6
npm error   node_modules/@nomicfoundation/hardhat-chai-matchers
npm error     peer @nomicfoundation/hardhat-chai-matchers@"^1.0.0" from @nomicfoundation/hardhat-toolbox@2.0.0
npm error     node_modules/@nomicfoundation/hardhat-toolbox
npm error       @nomicfoundation/hardhat-toolbox@"^2.0.0" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /Users/alstonhuang/.npm/_logs/2025-10-23T02_36_07_937Z-eresolve-report.txt
npm error A complete log of this run can be found in: /Users/alstonhuang/.npm/_logs/2025-10-23T02_36_07_937Z-debug-0.log
alstonhuang@Alstons-MacBook-Pro smart_contracts % node scripts/privacy/private_tx.js
Creating contract...
Error: Returned error: Error communicating with enclave
    at Object.ErrorResponse (/Users/alstonhuang/Desktop/quorum-test-network/smart_contracts/node_modules/web3-core-helpers/lib/errors.js:28:19)
    at /Users/alstonhuang/Desktop/quorum-test-network/smart_contracts/node_modules/web3-core-requestmanager/lib/index.js:300:36
    at /Users/alstonhuang/Desktop/quorum-test-network/smart_contracts/node_modules/web3-providers-http/lib/index.js:131:13
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
  data: null
}

I assumed it was related to npm packages, therefore, I tried this attempt.

alstonhuang@Alstons-MacBook-Pro smart_contracts % npm install --legacy-peer-deps

removed 400 packages, and audited 474 packages in 2s

105 packages are looking for funding
  run `npm fund` for details

10 vulnerabilities (5 low, 3 moderate, 2 critical)

To address all issues possible (including breaking changes), run:
  npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.
alstonhuang@Alstons-MacBook-Pro smart_contracts % node scripts/privacy/private_tx.js
node:internal/modules/cjs/loader:1413
  throw err;
  ^

Error: Cannot find module 'web3'
Require stack:
- /Users/alstonhuang/Desktop/quorum-test-network/smart_contracts/scripts/privacy/private_tx.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1410:15)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1051:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1056:22)
    at Module._load (node:internal/modules/cjs/loader:1219:37)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:238:24)
    at Module.require (node:internal/modules/cjs/loader:1493:12)
    at require (node:internal/modules/helpers:152:16)
    at Object.<anonymous> (/Users/alstonhuang/Desktop/quorum-test-network/smart_contracts/scripts/privacy/private_tx.js:3:14)
    at Module._compile (node:internal/modules/cjs/loader:1738:14) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/alstonhuang/Desktop/quorum-test-network/smart_contracts/scripts/privacy/private_tx.js'
  ]
}

Node.js v24.7.0

Somehow, web3 package was removed.

alstonhuang@Alstons-MacBook-Pro smart_contracts % npm list web3
@consensys-software/smart_contracts@1.0.0 /Users/alstonhuang/Desktop/quorum-test-network/smart_contracts
└── (empty)

So, I tried to manually install it.

alstonhuang@Alstons-MacBook-Pro smart_contracts % npm install web3 
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @nomicfoundation/hardhat-toolbox@2.0.0
npm error Found: ethers@6.15.0
npm error node_modules/ethers
npm error   peer ethers@"^6.14.0" from @nomicfoundation/hardhat-ethers@3.1.0
npm error   node_modules/@nomicfoundation/hardhat-ethers
npm error     @nomicfoundation/hardhat-ethers@"^3.0.0" from the root project
npm error   ethers@"^6.15.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer @nomicfoundation/hardhat-chai-matchers@"^1.0.0" from @nomicfoundation/hardhat-toolbox@2.0.0
npm error node_modules/@nomicfoundation/hardhat-toolbox
npm error   @nomicfoundation/hardhat-toolbox@"^2.0.0" from the root project
npm error
npm error Conflicting peer dependency: ethers@5.8.0
npm error node_modules/ethers
npm error   peer ethers@"^5.0.0" from @nomicfoundation/hardhat-chai-matchers@1.0.6
npm error   node_modules/@nomicfoundation/hardhat-chai-matchers
npm error     peer @nomicfoundation/hardhat-chai-matchers@"^1.0.0" from @nomicfoundation/hardhat-toolbox@2.0.0
npm error     node_modules/@nomicfoundation/hardhat-toolbox
npm error       @nomicfoundation/hardhat-toolbox@"^2.0.0" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /Users/alstonhuang/.npm/_logs/2025-10-23T02_43_57_068Z-eresolve-report.txt
npm error A complete log of this run can be found in: /Users/alstonhuang/.npm/_logs/2025-10-23T02_43_57_068Z-debug-0.log

In conclusion, I personally think npm packages have dependency issues, but I don't really know what version this repo is expecting from me. Has anyone successfully created transactions? Or could you kindly provide your package list/version? Many thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions