Consensys / web3js-eea

EEA JavaScript libraries.
Mozilla Public License 2.0
35 stars 40 forks source link

multiNodeExample: Error: Returned error: Method not enabled #164

Closed mohjam2004 closed 3 years ago

mohjam2004 commented 3 years ago

Hi, I'm checking privacy on my deployed besu network based on this doc: https://besu.hyperledger.org/en/21.1.6/Tutorials/Privacy/web3js-eea-Multinode-example/

but I get this error: image

I have changed chain id in keys.js from 1337 to 2018(my chain id) in my privacy node web3 is enabled for rpc and ws image

what's wrong in my configuration? image

I have deployed my private network based on this: https://github.com/ConsenSys/quorum-kubernetes/tree/master/kubectl/quorum-besu/ibft2-with-privacy image

mohjam2004 commented 3 years ago

I have found the problem: The rpc-http-api method PRIV was not set on config.toml of privacy nodes. Now I don't get the previous error: rpc-http-api=["DEBUG","ETH", "ADMIN", "WEB3", "IBFT", "NET", "EEA", "PRIV"] rpc-ws-api=["DEBUG","ETH", "ADMIN", "WEB3", "IBFT", "NET", "EEA", "PRIV"]

My new issue is that the transaction is got stuck in mining and I get this error: image

mohjam2004 commented 3 years ago

Hi again, The second problem has been resolved. I set min-gas-price=0 in config.toml of my besu nodes and I didn't get the error again. image

macfarla commented 3 years ago

Glad you solved the problem :)