Technical Reference

Address Book

The Address Book is a contract that stores verified World ID addresses. You can check if a user's address and associated ENS name (if available) is Orb verified using the getIsUserVerified helper function.

Considerations

Implementation

The helper function connects to the World Chain and checks if a given wallet address is verified by querying the Address Book contract.

Example Usage

import { getIsUserVerified } from "@worldcoin/minikit-js"

const userWalletAddress = "0x000000000000000000000000000000000000dEaD"
const isUserVerified = await getIsUserVerified(userWalletAddress) // optionally you can provide your rpc url as a second argument to the function
  • Returns true if the address is verified
  • Returns false if the address is not verified
  • Throws an error if the verification check fails

React Bindings

For React applications, we provide a hook useIsUserVerified that handles the verification check and loading state.