thanks, Martin
you're finally back ????
i want to check esdt balance of given address (like a snapshot) and give reward to them according to esdt balance in smart contract
i also want to check storage value of different SC in smart contract
is there any solution?
Ah sorry, must have missed it :)
I was never gone :) But its crazy busy times ????
To check the esdt balance of a given address you would need a smart contract in that shard and let that check it and return it to your smart contract.
However to really make a snapshot of all addresses which hold the token this is near impossible and crazy expensive.
So I would recommend to create the snapshot on a centralized server instead :)
To check the storage value of another SC you would create a callable function (endpoint or view doesn't matter) and call that from your contract :)
hi, @mwfiae
Ah sorry, must have missed it :) I was never gone :) But its crazy busy times ???? To check the esdt balance of a given address you would need a smart contract in that shard and let that check it and return it to your smart contract. However to really make a snapshot of all addresses which hold the token this is near impossible and crazy expensive. So I would recommend to create the snapshot on a centralized server instead :) To check the storage value of another SC you would create a callable function (endpoint or view doesn't matter) and call that from your contract :)