GIWA ID
This guide explains how to use GIWA ID (up.id), an ENS-based naming service.
Registration
GIWA ID registration is only available through Upbit's Verified Address service. This SDK provides name resolution and text record management.
What is GIWA ID?
GIWA ID is an ENS-based naming service that allows you to use human-readable names (alice.up.id) instead of complex Ethereum addresses (0x...).
0x742d35Cc6634C0532925a3b844Bc9e7595f... → alice.up.id
Key Features
- ENS Compatible: Works with all ENS-compatible libraries and tools
- Verified Identity: Only available to KYC-verified users
- Soul-Bound: Cannot be transferred or sold
- Cross-Chain: Works across multiple blockchains
useGiwaId Hook
import { useGiwaId } from 'giwa-react-native-wallet';
function GiwaIdScreen() {
const {
resolveAddress, // GIWA ID → Address
resolveName, // Address → GIWA ID
getGiwaId, // Get full GIWA ID info
getTextRecord, // Get profile records (avatar, etc.)
setTextRecord, // Set profile records (requires ownership)
isAvailable, // Check name availability
isLoading,
isInitializing,
error,
} = useGiwaId();
// ...
}
GIWA ID → Address Resolution
const handleResolve = async () => {
// Both formats work
const address = await resolveAddress('alice'); // or 'alice.giwa.id'
if (address) {
console.log('Address:', address);
} else {
console.log('GIWA ID not registered');
}
};
Address → GIWA ID Resolution (Reverse Lookup)
const handleReverseLookup = async () => {
const address = '0x742d35Cc6634C0532925a3b844Bc9e7595f...';
const name = await resolveName(address);
if (name) {
console.log('GIWA ID:', name);
} else {
console.log('No registered GIWA ID');
}
};