pancakeswap/pancake-info-api

Access to Syrup Pools stacking info

letehaha opened this issue · 6 comments

Hey guys, it is rather not an issue but a question. Sorry if it is super obvious, but I'm just a newbie here. Am I able to somehow check current staking info for the selected account id? For example, I asked some user to connect MetaMask to my website. He accepted the request and now I know his account id. Using BscScan I can check how many coins he sent to the PancakeSwap, but there is no info about how many coins he is staked in the pool and what is his current reward (I hope I'm using the terminology correctly).
Thanks in advance!

Hello, no this doesn't exist on the current API and this feature is not planned for it, we are planning to get a custom API for it but this is still a work in progress and no ETA can be shared at this time. To get this data, please refer to the implementation at pancakeswap/pancake-frontend repository.

Well, that makes sense about the repo. Thanks, @ChefKai!

Did you figure this out? If so could you please help me with it

@Robin-Sch nah, I just switched to other stuff :D

Oh yikes, well thanks anyway

https://gist.github.com/numtel/ce52b7d07cc62412eb5207b29f119d3b

This gist shows how to do it in nodejs (javascript)