Ethereum data on finalized blocks is broken

Dear support team, Please check this example where ccloudflare returns different results to the the same queries on Ethereum's finalized state. Both requests were made within 5 seconds!
[9:36:04] christian:~ $ curl --location 'https://cloudflare-eth.com' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc":"2.0",
"method":"eth_getTransactionCount",
"params":[
"0xb25eA1D493B49a1DeD42aC5B1208cC618f9A9B80",
"finalized"
],
"id":1
}'
{"jsonrpc":"2.0","result":"0x9f","id":1}%
[9:36:04] christian:~ $ curl --location 'https://cloudflare-eth.com' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc":"2.0",
"method":"eth_getTransactionCount",
"params":[
"0xb25eA1D493B49a1DeD42aC5B1208cC618f9A9B80",
"finalized"
],
"id":1
}'
{"jsonrpc":"2.0","result":"0x9f","id":1}%
$ curl --location 'https://cloudflare-eth.com' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc":"2.0",
"method":"eth_getTransactionCount",
"params":[
"0xb25eA1D493B49a1DeD42aC5B1208cC618f9A9B80",
"finalized"
],
"id":1
}'
{"jsonrpc":"2.0","result":"0x89","id":1}%
$ curl --location 'https://cloudflare-eth.com' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc":"2.0",
"method":"eth_getTransactionCount",
"params":[
"0xb25eA1D493B49a1DeD42aC5B1208cC618f9A9B80",
"finalized"
],
"id":1
}'
{"jsonrpc":"2.0","result":"0x89","id":1}%
Please let me know if you have any questions.
2 Replies
manu
manu9mo ago
note also that making this query repeatedly to cloudflare, you sometimes get the right result (0x9f) and sometimes the wrong result (0x89), so it's not consistent.
Grégory
Grégory9mo ago
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
}
]
}
Want results from more Discord servers?
Add your server