I'm having troubles when estimating the gas to call to one of the methods of my contract deployed in kaleido.
I've successfully deployed the contract through Remix. Also from Remix I can call all my methods and they are working ok. From web3js I've instantiated it, and I can check the balance of my accounts from within web3js (1.0.0-beta.47), but when estimating the gas to call one of the methods of my contract I am getting the error "The method eth_chainId does not exist/is not available".
The code:
const provider = new Web3.providers.HttpProvider("https://<USER>:<PASS>@<NODE RPC ENDPOINT>");
const web3 = new Web3(provider);
const deploy = web3.eth.accounts.privateKeyToAccount(<ACCOUNT PRIVATE KEY>);
const contract = new web3.eth.Contract(contractAbi, contractAddress, { gasPrice: 1, gas: 4500000 });
var estimatedGas = await contract.methods.myMethod().estimateGas({ from: deploy.address });
The error:
Error: Node error: {"code":-32601,"message":"The method eth_chainId does not exist/is not available"}
Any idea what's is wrong?