Skip to main content

New answers tagged

1 vote
Accepted

How to deserialize StakePool account data on a solana native program on chain?

This is saying you don't have the BorshDeserialize trait in scope/are using the wrong try_from_slice_unchecked. Unfortunately solana_program exports a bunch of borsh versions that all work with a ...
Ahri's user avatar
  • 4,597
0 votes

Allow a holder to freeze/thaw their own SPL token token account

There's no way to do this through the normal operation of SPL Token. The freeze authority is the only one that can freeze or thaw accounts normally. To make this work, you can write your own on-chain ...
Jon C's user avatar
  • 16.1k
3 votes
Accepted

Improve performance of getParsedProgramAccounts for StakeAccount

The call is trying to filter through all stake accounts, which is on the order of 1 million accounts. Unfortunately, this will take a long time no matter what using the standard RPC node. If you want ...
Jon C's user avatar
  • 16.1k

Top 50 recent answers are included