Hi guys, I’m currently synchronizing the archive node with the latest block height (it’s been increasing, it’s currently 5.4T storage, and the block has come to around 11000000). But when I check the historical balance of an address, it keeps getting 0, does anyone know why? Grateful.
ubuntu@ip-172-31-6-193:/bsc/archive$ curl -XPOST --data ‘{“jsonrpc”: “2.0”, “id”: 1, “method” : “eth_getBalance”, “params” : [“0x112fc0d4199ea38185fb6eb6ff2aab43eb1fc569”, “0xA4C9D0”]}’ -H “Content-Type: Application/json” http://10.233.77.31:8545
{“jsonrpc”:“2.0”,“id”:1,“result”:“0x0”}
It returns 0, actually it should be 0x753d533d968000
I have searched and asked in issue, but did not get effective help
opened 01:16PM - 29 Apr 23 UTC
Hi guys,
I am synchronizing an archive node, and it has just been synchronize… d for 1 day, but I found that when it queries the balance of historical blocks, it is always 0. This seems to be incorrect. Is it because my program is not started correctly? Or other reasons, thanks for your help.
System information
Geth version: geth version
1.1.23
OS & Version: Windows/Linux/OSX
Ubuntu 20.04.6 LTS (GNU/Linux 5.15.0-1033-aws x86_64)
Commit hash : (if develop)
in k8s
```
containers:
- name: bsc
image: 'ghcr.io/bnb-chain/bsc:1.1.23'
args:
- '--syncmode=full'
- '--gcmode=archive'
- '--snapshot=false'
- '--http'
- '--cache=81920'
- '--rpc.allow-unprotected-txs'
- '--txlookuplimit=0'
- '--http.corsdomain=*'
- '--ws.origins=*'
```
The config file is downloaded from https://github.com/bnb-chain/bsc/releases/tag/v1.1.23.
```
curl -XPOST --data '{"jsonrpc": "2.0", "id": 1, "method" : "eth_getBalance", "params": ["0x233aaa8e7b8c7297501f8576c2883f5a7c874e17", "0x493F2"]}' -H "Content-Type: Application/json" http://10.233.77.20:8545
```
{"jsonrpc":"2.0","id":1,"result":"0x0"}
```
curl -XPOST --data '{"jsonrpc": "2.0", "id": 1, "method" : "eth_getBalance", "params": ["0x233aaa8e7b8c7297501f8576c2883f5a7c874e17", "0x493F2"]}' -H "Content-Type: Application/json" https://fabled-quaint-patron.bsc.discover.quiknode.pro/xxx/
```
{"jsonrpc":"2.0","id":1,"result":"0x5d2ac2a306e0d000"}
better to raise your issue in: Issues · bnb-chain/bsc · GitHub
The forum is mainly for discussion of the bnb chain ecosystem, not to solve issue here.