Hi all
Is there any method to get info about rewards/staking ton count from elector/nominator transaction info?
I can see that smarcontract call method get_data()
cell get_data() asm "c4 PUSH";
But can I get this data from transaction info by api with parsing body cell?
Or I only need to use my own smart contract that will expose info all that I need and encode it to transaction body cells?
Dec 13, 2023, 7:36 AM
I just want to understand how staking pools show statistics on web pages
Of course, I can just use db and store all transactions and calculate from it but it's looking not right if we already have all info in the chain
Of course if it's there)
Of course, I can just use db and store all transactions and calculate from it but it's looking not right if we already have all info in the chain
Of course if it's there)
Dec 13, 2023, 7:40 AM
You can load contract state (balance, code and data). If you choose to call any additional get-methods, you should do so locally on the state obtained (so that new transactions don't break the consistency).
Dec 13, 2023, 7:55 AM
I see
So I can use getAccountState and parse contract state from there?
Thanks!
So I can use getAccountState and parse contract state from there?
Thanks!
Dec 13, 2023, 7:59 AM