I am using the following code:
public async getTokensAccountbyOwner(publicKey: PublicKey) {
const accounts = await this.connection.getParsedProgramAccounts(
TOKEN_PROGRAM_ID, // new PublicKey("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA")
{
filters: [
{
dataSize: 165, // number of bytes
},
{
memcmp: {
offset: 32, // number of bytes
bytes: publicKey.toBase58(), // base58 encoded string
},
},
],
})
return accounts;
}
to fetch SPL owner by wallet, how can i filter out NFTz address?