A brief guide on how to check if an address holds a valid DeFi Passport
When a user receives a DeFi Passport, you can be assured that they've passed some basic criteria around activity for their wallet. For example, the current criteria ensures that they have:
30 Days of wallet history
Interacted with more than 5 unique address
Spent at least 0.01 ETH on gas
Paid or staked tokens for a DeFi Passport
This can be valuable if you're a developer and want some basic assurances around the user you're allowing to interact with your dApp. Below are the two methods you can use to check if a user holds a valid DeFi Passport.
If you'd like to check if a user has DeFi Passport directly on-chain here are the steps you need to take:
That's it. If the user has a valid passport you'll get the ERC721 token id of their DeFi Passport. A single address cannot have more than one DeFi Passport so the token id you receive is guaranteed to be unique.
We've designed the passport to be highly interoperable within DeFi and we hope you find it easy to integrate with as well.
In the case that you'd like to check if a user has a DeFi Passport via a REST API that's just as simple. Simply call the following endpoint where address is the address of the user to check.