Overview
Mint a new Identity SBT (Soulbound Token) to create a decentralized identity with a human-readable ZKS ID.Prerequisites
- Wallet Connection: Connected Web3 wallet
- ZKS ID Available: Desired ZKS ID must be available
- Gas Fees: Sufficient ETH for transaction fees
- No Existing Identity: User must not already have an identity
Minting Process
1. Check Availability
2. Mint Identity
3. Verify Minting
Minting Parameters
Required Parameters
- zksId: Human-readable identifier (e.g.,
alice.zks) - displayName: User’s display name
- avatarUrl: URL to user’s avatar image
Optional Parameters
- bio: User biography/description
- website: Personal website URL
- socialLinks: Array of social media links
Minting Fees
Fee Structure
| Network | Fee (ETH) | Fee (USD) |
|---|---|---|
| Ethereum | 0.01 ETH | ~$20 |
| Polygon | 0.001 ETH | ~$2 |
| Arbitrum | 0.001 ETH | ~$2 |
| Base | 0.001 ETH | ~$2 |
Fee Calculation
Error Handling
Common Errors
| Error | Description | Solution |
|---|---|---|
ZKS_ID_TAKEN | ZKS ID already exists | Choose different ZKS ID |
IDENTITY_EXISTS | User already has identity | Cannot mint second identity |
INSUFFICIENT_FEE | Not enough ETH for fee | Add more ETH to wallet |
INVALID_ZKS_ID | ZKS ID format invalid | Use valid format (name.zks) |
Error Handling Example
Best Practices
- Check Availability First: Always verify ZKS ID is available
- Handle Errors Gracefully: Implement proper error handling
- Estimate Gas: Calculate total cost before minting
- Store Transaction Hash: Keep record of minting transaction
- Verify Success: Confirm identity was created successfully