Grégory
Grégory
CDCloudflare Developers
Created by Christian on 3/14/2024 in #general-help
Ethereum data on finalized blocks is broken
Also the result of eth_getLogs on a finalized block is wrong
curl --location 'https://cloudflare-eth.com' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_getLogs",
"params": [
{
"fromBlock": "0x12865a7",
"toBlock": "0x1286625",
"address": [
"0x7574eb42ca208a4f6960eccafdf186d627dcc175"
],
"topics": [
"0x257e057bb61920d8d0ed2cb7b720ac7f9c513cd1110bc9fa543079154f45f435"
]
}
],
"id": 74
}'
curl --location 'https://cloudflare-eth.com' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_getLogs",
"params": [
{
"fromBlock": "0x12865a7",
"toBlock": "0x1286625",
"address": [
"0x7574eb42ca208a4f6960eccafdf186d627dcc175"
],
"topics": [
"0x257e057bb61920d8d0ed2cb7b720ac7f9c513cd1110bc9fa543079154f45f435"
]
}
],
"id": 74
}'
returns
{
"jsonrpc": "2.0",
"result": [],
"id": 74
}
{
"jsonrpc": "2.0",
"result": [],
"id": 74
}
But the correct result can for example be queried from https://ethereum.publicnode.com
{
"jsonrpc": "2.0",
"id": 74,
"result": [
{
"address": "0x7574eb42ca208a4f6960eccafdf186d627dcc175",
"topics": [
"0x257e057bb61920d8d0ed2cb7b720ac7f9c513cd1110bc9fa543079154f45f435",
"0x0000000000000000000000009a43e9e5b9a5ffebc24c700b2e0a8e6b1d9a01cb",
"0x1d088407d74b46494674eafa1b65fd557109df3490d2555a3b041adec7020000"
],
"data": "0x0000000000000000000000000000000000000000000000008ef0f36da2860000",
"blockNumber": "0x12865a7",
"transactionHash": "0x9497c4ac7259597e99b950e0a1ce3d5bfb722e5e3ea6e7f7e3bce2c1b0d50f19",
"transactionIndex": "0x56",
"blockHash": "0xc619541ec9322feb8d2f36111466fe4db9283d92f11c60534c5345adeada8f59",
"logIndex": "0xc0",
"removed": false
}
]
}
{
"jsonrpc": "2.0",
"id": 74,
"result": [
{
"address": "0x7574eb42ca208a4f6960eccafdf186d627dcc175",
"topics": [
"0x257e057bb61920d8d0ed2cb7b720ac7f9c513cd1110bc9fa543079154f45f435",
"0x0000000000000000000000009a43e9e5b9a5ffebc24c700b2e0a8e6b1d9a01cb",
"0x1d088407d74b46494674eafa1b65fd557109df3490d2555a3b041adec7020000"
],
"data": "0x0000000000000000000000000000000000000000000000008ef0f36da2860000",
"blockNumber": "0x12865a7",
"transactionHash": "0x9497c4ac7259597e99b950e0a1ce3d5bfb722e5e3ea6e7f7e3bce2c1b0d50f19",
"transactionIndex": "0x56",
"blockHash": "0xc619541ec9322feb8d2f36111466fe4db9283d92f11c60534c5345adeada8f59",
"logIndex": "0xc0",
"removed": false
}
]
}
3 replies