I am trying to find all the token accounts that belong to a specific wallet address however i keep getting this error: Error: failed to get accounts owned by program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA: TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA excluded from account secondary indexes; this RPC method unavailable for key
my code:
const filters:solanaWeb3.GetProgramAccountsFilter[] = [
{
dataSize:156
},
{
memcmp:{
offset:32,
bytes:newPub.toString()
}
}
]
const tA = await connection.getParsedProgramAccounts(TOKEN_PROGRAM_ID,{filters})