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

ankr_getAccountBalance is not stable #12

Closed
aminhdev opened this issue Nov 7, 2022 · 3 comments
Closed

ankr_getAccountBalance is not stable #12

aminhdev opened this issue Nov 7, 2022 · 3 comments

Comments

@aminhdev
Copy link

aminhdev commented Nov 7, 2022

My problem
I used "@ankr.com/ankr.js@0.1.12" package for get account balance with my premium plan, tried to call ankr_getAccountBalance 10 times, 5 times I got empty returned result

This is my request params
Screenshot 2022-11-07 at 11 23 40

Current result: 5 times got this empty result / total 10 tried requests
Screenshot 2022-11-07 at 11 24 33

Expected
With the same request above the method should return data instead of empty result in the randomly time
image

@bogatyr285
Copy link
Contributor

curl --location --request POST 'https://rpc.ankr.com/multichain' \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: $$$$$$$$$$$$$$$$$$$$$$' \
--data-raw '{
    "jsonrpc": "2.0",
    "method": "ankr_getAccountBalance",
    "params": {  
        "walletAddress": "0xb644e9b2b38da1752da7ae3767e829bcabbf688f",
        "pageSize": 10000
    },
    "id": 1
}'

Request works well even if call it multiple time. Please try again and you can remove onlyWhitelisted param(which can be buggy at current moment).
Please text us about your results

@aminhdev
Copy link
Author

aminhdev commented Nov 7, 2022

Thanks for your info, let me try it

@aminhdev
Copy link
Author

aminhdev commented Nov 8, 2022

curl --location --request POST 'https://rpc.ankr.com/multichain' \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: $$$$$$$$$$$$$$$$$$$$$$' \
--data-raw '{
    "jsonrpc": "2.0",
    "method": "ankr_getAccountBalance",
    "params": {  
        "walletAddress": "0xb644e9b2b38da1752da7ae3767e829bcabbf688f",
        "pageSize": 10000
    },
    "id": 1
}'

Request works well even if call it multiple time. Please try again and you can remove onlyWhitelisted param(which can be buggy at current moment). Please text us about your results

Its working as expected for now, thanks and closed this issue

@aminhdev aminhdev closed this as completed Nov 8, 2022
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