#
Solana
#
Adding on-chain kycNFT checks
Utilising the kycNFT program on Solana in order to do an on-chain KYC check is very simple. The kycNFT program exposes a simple CPI interface which can be used to check if an account has a valid kycNFT token.
Essentially, it comes down to calling the has_valid_token
function on the kycNFT program, and passing in the account address you want to check.
The example below shows how to do this using the Anchor framework.
#
Example
We've written an example program which uses the kycDAO program to check if an account has a valid kycNFT token.
See the example program for more details.