Open ARR552 opened 4 years ago
First, what version of Besu are you using?
You are querying all events from block zero and we are timing out getting all the events.
fromBlock: 0 Change that to a more current block, or leave the option out.
Finally, what network is being connected to?
Hey @shemnon I'm using besu/v1.5.0/linux-x86_64/oracle_openjdk-java-11 (docker version) I'm getting the same error removing fromBlock: 0. What do you mean when you ask to which network i am connected to?
@ARR552 - are you connected to a public network (eg, mainnet, rinkeby, etc) or to a private network?
Can you change the fromBlock: to a block number closer to the chainhead?
@MadelineMurray I am connected to a private network. However the same code in ganache is working. @shemnon I try with block 9000 (the chain has only 9500 blocks for now) but i get the same error.
It must be something other than too many logs. We will need to reproduce this in-house. How loaded is the chain with data? Is the contract you are calling open source?
pragma solidity ^0.6.11;
contract eventContract {
event eventValue(address sender, uint amount); // Event
function launchEvent(uint _val) public { emit eventValue(msg.sender, _val); // Triggering event }
} Only this SmartContract is deployed on the besu network. Maybe it is a configuration problem, I don't know.
Hello, I'm trying to read events in real time (Not past events). The docker compose is:
The config.toml has this content:
The script that i am using to read events:
When I run the script I get the following error all the time:
I able to recover the events in ganache but I don't know what I'm doing wrong.
¿Any idea?
Thank you
"web3": "^1.2.11" Besu: latest version