Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Account balance api return empty. #21

Open
Zack435 opened this issue Dec 8, 2024 · 1 comment
Open

Account balance api return empty. #21

Zack435 opened this issue Dec 8, 2024 · 1 comment

Comments

@Zack435
Copy link

Zack435 commented Dec 8, 2024

Account balance api return empty.


http://localhost:8081/v2/accounts/0QBOefa_REKGN4kzriRcDFk2Wk5xF6RnGDNMNDYUsGnr59x7/jettons?currencies=ton

Response


{
    "balances": []
}

However the official api endpoint return normally.


https://testnet.tonapi.io/v2/accounts/0QBOefa_REKGN4kzriRcDFk2Wk5xF6RnGDNMNDYUsGnr59x7/jettons?currencies=ton

Response


{
    "balances": [
        {
            "balance": "1000000000",
            "price": {
                "prices": {
                    "TON": 0
                },
                "diff_24h": {
                    "TON": "0.00%"
                },
                "diff_7d": {
                    "TON": "0.00%"
                },
                "diff_30d": {
                    "TON": "0.00%"
                }
            },
            "wallet_address": {
                "address": "0:940b0d7eccab7ff0cc8ad4a4ba0214e9e59f26c73a1c82ad3d59626f80f8fdcf",
                "is_scam": false,
                "is_wallet": false
            },
            "jetton": {
                "address": "0:226e80c4bffa91adc11dad87706d52cd397047c128456ed2866d0549d8e2b163",
                "name": "Aiotx",
                "symbol": "AIOTX",
                "decimals": 9,
                "image": "https://cache.tonapi.io/imgproxy/cOMlJuViiVXDCkAghnyNj7plX8pAZ9pv3WhklvebpTY/rs:fill:200:200:1/g:no/aHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL3RvbmtlZXBlci9vcGVudG9uYXBpL21hc3Rlci9wa2cvcmVmZXJlbmNlcy9tZWRpYS90b2tlbl9wbGFjZWhvbGRlci5wbmc.webp",
                "verification": "none"
            }
        },
        {
            "balance": "837996984",
            "price": {
                "prices": {
                    "TON": 0
                },
                "diff_24h": {
                    "TON": "0.00%"
                },
                "diff_7d": {
                    "TON": "0.00%"
                },
                "diff_30d": {
                    "TON": "0.00%"
                }
            },
            "wallet_address": {
                "address": "0:32a16006ee1c6663d9b8fb64091a3594868f3a6dbc95c379e9a851ba59782240",
                "is_scam": false,
                "is_wallet": false
            },
            "jetton": {
                "address": "0:224365caec15de3cbc1e99ea3ebb8c0dca383ec3119ec9299a14610fed1d8c85",
                "name": "Tuna Token",
                "symbol": "TUNA",
                "decimals": 9,
                "image": "https://cache.tonapi.io/imgproxy/yoLEUMWelx1gHsX7M2zCWTvNeinhQq_GvEQB0AOq1eY/rs:fill:200:200:1/g:no/aHR0cHM6Ly93d3cuc3ZncmVwby5jb20vZG93bmxvYWQvMjgyMjMwL3R1bmEuc3Zn.webp",
                "verification": "none"
            }
        }
    ]
}

And I think The node that we maintained is good. I can retrieve account balance from mytonctl


MyTonCtrl> vas 0QBOefa_REKGN4kzriRcDFk2Wk5xF6RnGDNMNDYUsGnr59x7
[debug]   13.09.2024, 10:20:25.687 (UTC)  <MainThread>  start GetConfig function (12)
[debug]   13.09.2024, 10:20:25.702 (UTC)  <MainThread>  start GetConfig function (15)
[debug]   13.09.2024, 10:20:25.746 (UTC)  <MainThread>  start GetWalletVersionFromHash function
[debug]   13.09.2024, 10:20:25.755 (UTC)  <MainThread>  start GetAccountHistory function
Address                                           Status  Version  Balance
0QBOefa_REKGN4kzriRcDFk2Wk5xF6RnGDNMNDYUsGnr59x7  active  v4       1.741640261

Time              Coins        From/To
an hour ago  <<<  0.882794118  kQAyoWAG7hxmY9m4-2QJGjWUho86bbyVw3npqFG6WXgiQG9J
an hour ago  <<<  0.1          kQAyoWAG7hxmY9m4-2QJGjWUho86bbyVw3npqFG6WXgiQG9J
an hour ago  >>>  2.0          kQANFsYyYn-GSZ4oajUJmboDURZU-udMHf9JxzO4vYM_hFP3
an hour ago  <<<  1.0          kQCJMarCegoPAaxxjh6JQTp4jwzQrzkAkNG7wSrlj4Lb41it
1 days ago   <<<  0.8825868    kQCpb5tGTMg-Zc0h_CuPMe62--NCWWxnPi7o1osLJOmEzKwB
1 days ago   >>>  1.0          kQAyoWAG7hxmY9m4-2QJGjWUho86bbyVw3npqFG6WXgiQG9J
1 days ago   <<<  0.882260987  kQAyoWAG7hxmY9m4-2QJGjWUho86bbyVw3npqFG6WXgiQG9J
1 days ago   <<<  0.1          kQAyoWAG7hxmY9m4-2QJGjWUho86bbyVw3npqFG6WXgiQG9J
1 days ago   >>>  2.0          kQANFsYyYn-GSZ4oajUJmboDURZU-udMHf9JxzO4vYM_hFP3
1 days ago   <<<  1.98406497   kQANFsYyYn-GSZ4oajUJmboDURZU-udMHf9JxzO4vYM_hFP3

Originally posted by @JavHou in tonkeeper/opentonapi#478

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@Zack435 and others