You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi this is easy to do, you just need to do something like this:
constcommitment="confirmed"constconnection=newConnection(RPC_URL,{ commitment })constwallet=web3.Keypair.generate()constgemFarm=anchor.Program<GemFarm>(farmIdlasany,GEM_FARM_PROG_ID,newanchor.Provider(connection,newanchor.Wallet(wallet),{ commitment }))constfetchFarmers=async(farm: PublicKey)=>{constfilters=[{memcmp: {offset: 8,bytes: farm.toBase58()}}]returnawaitgemFarm.account.farmer.all(filters)}// then call fetchFarmers with your farm public key as parameter.fetchFarmers(FARM_KEY)// After that you just need to store the output somewhere
Hi,
I would like to take a snapshot of our holders, those who stake at the moment.
I didnt really find how to do that, any doc or recommandation?
I would like to make a list of wallet so we can airdrop them in the future
thanks for the help
The text was updated successfully, but these errors were encountered: