Hello! I'm trying to get staking info by address from the self-hosted TON node. Found tonapi.io which provides such endpoint: "/api/v2/staking/nominator//pools". Is there any other way of getting such kind of data using RPC calls? Thanks in advance!
Jan 26, 2024, 1:51 PM
What data are you looking for exactly?
Jan 26, 2024, 2:36 PM
To get info about current staking balances for given address
Jan 26, 2024, 2:44 PM
You want to get info from the nominator address or from the validators end?
Jan 26, 2024, 2:45 PM
For the nominator
Jan 26, 2024, 2:45 PM
Maybe you can use liteclient if you are running your own node
But using the API is easiest :D
Jan 26, 2024, 2:48 PM
I see, so TON node has functionality to return staking nominator data through ADNL, is that correct?
maybe you know any additional sources or docs related to this topic
Jan 26, 2024, 2:53 PM
I think you can use get_pool_data to get info about the pool and nominators for the pool
There is also list_nominators I believe
Jan 26, 2024, 2:56 PM
Thank you for quick response!
Jan 26, 2024, 3:05 PM