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:
import { Badge } from "@civic/solana-gateway-react"
<Badge publicKey={key} gatekeeperNetwork={new PublicKey("PASS")}/>
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