Displaying the Verified by Civic Badge
To show whether a wallet's public key has been verified by Civic add these into your dApp UI:
1
import { Badge } from "@civic/solana-gateway-react"
2
3
<Badge publicKey={key} gatekeeperNetwork={new PublicKey("PASS")}/>
Copied!
where "PASS" is one of the Civic Passes detailed here (click the link on the pass name to get the on-chain address of the pass)
This code will show our "Verified by Civic Pass" badge, if the key has been verified, and nothing if not:
Last modified 1mo ago
Copy link