Error: Failed to make âeth_getTransactionCountâ request with networkConnector: âundefinedâ at MiniRpcProvider.request (node_modules/moralis/lib/node/Web3Connector/NetworkWeb3Connector.js:85:15)
throw new Error(`Failed to make â${method}â request with networkConnector: â${error.message}â`);
web3.js functions are not working using moralisSecret on serverside
const Moralis = require('moralis/node');
const web3 = require('web3');
await Moralis.start({
moralisSecret: 'xxxxxx',
});
await Moralis.enableWeb3({
chainId: '0x4'
});
const web3Provider = new web3(Moralis.provider);
const count = await web3Provider.eth.getTransactionCount('anyaddress');
console.log(count);
I am using âmoralisâ: â1.5.8â.
The above code with appropriate values was working fine before the recent "speedy node removal change"
. I am using free account. I just want to know is this process also deprecated or it is a bug generated form the recent update. If deprecated then what will be the alternative process for using web3.js with Moralis on server-side