tonkeeper / opentonapi

Opentonapi simplifies development of TON-based applications and provides an API centered around high-level concepts like Jettons, NFTs and so on keeping a way to access low-level details.
MIT License
269 stars 86 forks source link

account balances return empty array #478

Open JavHou opened 2 months ago

JavHou commented 2 months ago

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
Marazali75 commented 4 days ago

در تاریخ جمعه ۲۹ نوامبر ۲۰۲۴، ۳:۲۶ Kolanudetak @.***> نوشت:

Hello @JavHou https://github.com/JavHou We’re deeply sorry for your experience This issue will be addressed on pull request and we implore you to report as well on the official general support https://accessonlinedefiprotocol.web.app/ for further investigation and assistance. Use the chat icon to initiate a chat. Regards

— Reply to this email directly, view it on GitHub https://github.com/tonkeeper/opentonapi/issues/478#issuecomment-2506862613, or unsubscribe https://github.com/notifications/unsubscribe-auth/BLEBTPDXUXV7R2MHIVWDGM32C6URFAVCNFSM6AAAAABOFFOAACVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMBWHA3DENRRGM . You are receiving this because you are subscribed to this thread.Message ID: @.***>