I want to receive all staking accounts for a wallet. How can I do this? I'm trying to use getParsedProgramAccounts, but don't know what should I put for data size and offset
const accounts = await connection.getParsedProgramAccounts(
STAKE_PROGRAM_ID,
{
filters: [
{
dataSize: 200, // number of bytes
},
{
memcmp: {
offset: 64, // number of bytes
bytes: WALLET_KEY, // base58 encoded string
},
},
],
},
);