You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
Hello,
I tried fetching a specific log topic from a block using the following command: curl http://127.0.0.1:8545/ -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"eth_getLogs","params":[{"blockHash": "0xbbd9832d7b95ed3f989ed02f5c56721d6c1d6dce3675edb3b1446745a92a0ef5", "topics":["0x692cf5822a02f5edf084dc7249b3a06293621e069f11975ed70908ed10ed2e2c"]}],"id":1}'
Hello,
I tried fetching a specific log topic from a block using the following command:
curl http://127.0.0.1:8545/ -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"eth_getLogs","params":[{"blockHash": "0xbbd9832d7b95ed3f989ed02f5c56721d6c1d6dce3675edb3b1446745a92a0ef5", "topics":["0x692cf5822a02f5edf084dc7249b3a06293621e069f11975ed70908ed10ed2e2c"]}],"id":1}'
when running ganache in a forked mode:
yarn ganache-cli --fork https://mainnet.infura.io/v3/MY_API_KEY
and I get the following response:
{"id":1,"jsonrpc":"2.0","result":[]}
when I request the data directly from mainnet I get the logs as expected:
{"jsonrpc":"2.0","id":1,"result":[{"address":"0xff1f2b4adb9df6fc8eafecdcbf96a2b351680455","blockHash":"0xbbd9832d7b95ed3f989ed02f5c56721d6c1d6dce3675edb3b1446745a92a0ef5","blockNumber":"0xf7ba95","data":"0x00000000000000000000000000000000000000000000000016f5542f3d78100000000000000000000000000000000000000000000000000019073d0ff485ac720000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000","logIndex":"0xa2","removed":false,"topics":["0x692cf5822a02f5edf084dc7249b3a06293621e069f11975ed70908ed10ed2e2c","0x000c7d713b49da00000000000000000000000000000000000000000200000006","0x000000000000000000000000000000000000000000000000000000000002d440"],"transactionHash":"0xb729f4470ef59d330f4939ef5215617b07ab65b2b6ea273fb2dc6e903df0edfa","transactionIndex":"0x4b"},{"address":"0xff1f2b4adb9df6fc8eafecdcbf96a2b351680455","blockHash":"0xbbd9832d7b95ed3f989ed02f5c56721d6c1d6dce3675edb3b1446745a92a0ef5","blockNumber":"0xf7ba95","data":"0x0000000000000000000000000000000000000000000000000bf810fb43b1a0000000000000000000000000000000000000000000000000000af867c43704f1ea0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000","logIndex":"0xac","removed":false,"topics":["0x692cf5822a02f5edf084dc7249b3a06293621e069f11975ed70908ed10ed2e2c","0x000de0b6b3a76400000000000000000000000000200000000000000000000006","0x000000000000000000000000000000000000000000000000000000000002d441"],"transactionHash":"0xb729f4470ef59d330f4939ef5215617b07ab65b2b6ea273fb2dc6e903df0edfa","transactionIndex":"0x4b"}]}
I am running currently the newest ganache:
When I start ganache it correctly displays the forked mode and I double checked that the infura URL is correct:
Any ideas what might be the issue? Thank you
The text was updated successfully, but these errors were encountered: