Documentation Index
Fetch the complete documentation index at: https://docs.rekthub.io/llms.txt
Use this file to discover all available pages before exploring further.
Overview
RektHubToken is RektHub’s implementation of creator tokens, standard ERC20 tokens with metadata URI support and a one-time mint mechanism. Every creator token on RektHub uses this battle-tested standard, ensuring consistency, security, and gas efficiency.For Creators: Your token is a standard ERC20, which means it’s compatible
with all wallets, DEXes, and DeFi protocols. The metadata URI lets you add
personality, your brand, socials, and community links.
Purpose & Design
What Makes It Special
- Standard ERC20: Full compatibility with existing infrastructure
- Metadata URI: Link to your token’s identity (name, image, socials)
- One-Time Mint: Exactly 1 billion tokens minted once, then permanently locked
- Gas Efficient: Uses minimal proxy pattern (EIP-1167) to clone a master implementation
- Creator Control: Only creators can update metadata
Why One-Time Mint?
- Token is deployed by Factory
- Factory calls
mintAndDisableMinting() - 1B tokens go to the bonding curve
- Minting is permanently disabled
- No inflation: Supply cannot increase
- Predictable economics: Creators and traders know the total supply upfront
- Security: No rug pulls via minting
Token Distribution
When a token is created, the 1 billion total supply is distributed as follows:| Allocation | Amount | Purpose |
|---|---|---|
| Bonding Curve | 1,000,000,000 | Sent to curve on creation |
| └─ Tradeable | 850,000,000 (85%) | Available for trading via bonding curve |
| └─ Reserved | 150,000,000 (15%) | Held in curve for graduation liquidity |
Why 150M Reserved? When a token graduates to DEX, it needs token liquidity
for the pool. The reserved tokens ensure there’s always liquidity available for
graduation.
Key Functions
Core ERC20
RektHubToken implements standard ERC20 functions:Metadata Management
tokenURI
Get the metadata URI for this token.
Returns:
string: URI pointing to token metadata JSON (usually IPFS/Arweave)
setTokenURI
Update the token’s metadata URI. Creator-only.
New metadata URI (must not be empty)
TokenURIUpdated
View Functions
creator
Get the token creator’s address.
Returns:
address: Creator address
factory
Get the Factory contract address.
Returns:
address: RektHub Factory address
mintingDisabled
Check if minting is permanently disabled (always returns true after initialization).
Returns:
bool: Alwaystrueafter the one-time mint
decimals
Get token decimals (always 18).
Returns:
uint8: 18 (standard for EVM tokens)
Metadata Structure
YourtokenURI should point to a JSON file with this structure:
Required Fields
Token name (e.g., “Creator Coin”)
Token symbol (e.g., “CRTR”)
Brief description of your token and community
IPFS/Arweave URI for token logo/artwork
Optional Fields
Your website or landing page
Token traits (creator name, launch date, etc.)
Links to your social presence (Twitter, Telegram, Discord, etc.)
Events
TokenURIUpdated
Emitted when creator updates the metadata URI.MintingDisabled
Emitted once when minting is permanently disabled (during initialization).Integration Patterns
Fetch and Display Token Metadata
Build a Token Card Component
Upload Metadata to IPFS
Here’s a quick guide for creators to upload metadata:Prepare Your Metadata
Create a JSON file following the structure above. Include all social links and a high-quality image.
Upload to IPFS
Use a service like Pinata, NFT.Storage, or Web3.Storage:
Gas Optimization
RektHub uses the minimal proxy pattern (EIP-1167) for token deployment:How It Works
- Implementation Contract: Deployed once per chain (master copy)
- Clone Creation: Each new token is a minimal proxy (~100KB of bytecode)
- Delegatecall: All logic delegated to the implementation
Gas Savings
| Deployment Method | Gas Cost |
|---|---|
| Traditional Deploy | ~3,000,000 gas |
| Minimal Proxy (RektHub) | ~100,000 gas |
| Savings | ~97% reduction |
For Integrators: You don’t need to worry about the clone pattern. Interact
with token addresses like normal ERC20s, the proxy handles delegation
automatically.
Security Considerations
Supply is Immutable
- No one can mint more tokens (not even the creator)
- Total supply is forever fixed at 1 billion
- Economic model is predictable and transparent
Creator Powers
Creators can only:- Update the
tokenURI(metadata) - Transfer creator role to another address
- Mint new tokens
- Burn tokens
- Pause transfers
- Control user balances
- Modify bonding curve parameters
Trust Minimization: Creator powers are intentionally limited. Your tokens
are yours, creators can’t rug pull or manipulate supply.
Next Steps
Factory Contract
Learn how to create tokens
Bonding Curve
Understand the trading engine
Metadata Standards
Deep dive into metadata format