I am a beginner in trying this program solana. i have such a question.
can i get nft or account at user address in solana program(smart contract)?
I have a case where I want to make a smart contract which checks whether the user has a certain nft, if so then it will continue and if not it will return an error.
meaning I have to check whether the user has the nft in question.
how do i do that? in the client I can use rpc to fetch nfts accounts, but can this be done in the solana rust program?