For Developers
This page provides technical guidance on how UID works, and how to integrate it with your protocol or dApp.
Integrating UID in your smart contracts
# This is using OpenZeppelin's ERC1155 preset contracts:
# https://docs.openzeppelin.com/contracts/3.x/api/token/erc1155#IERC1155
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
contract MyContract {
address UID_CONTRACT = "0xba0439088dc1e75f58e0a7c107627942c15cbb41";
uint256 public constant ID_VERSION_0 = 0;
function hasUID(address userAddress) returns (bool) {
uint256 balance = IERC1155(UID_CONTRACT).balanceOf(userAddress, ID_VERSION_0);
return balance > 0
}
}Integrating UID in your dApp
Getting new users verified
How It Works
Security and Privacy
Need to get in touch?
Last updated
Was this helpful?
