Overview
Token creation on KasFun requires a platform signature — you cannot callcreateToken() directly without one. This is by design: all tokens should be created through the kas.fun website.
Token creation is designed to be done through the KasFun website at kas.fun/create-token. The platform signature ensures metadata integrity and prevents spam.
How It Works
Prepare (via KasFun)
The user fills in token details (name, symbol, icon, description) on kas.fun. The platform generates a signature authorizing the creation.
On-Chain Transaction
The user’s wallet calls
MemeFactory.createToken(params) with the signed parameters. This is a payable call — it requires a creation fee.createToken Parameters
Creation Fee
The contract charges a creation fee in KAS. Query it via:creatorBuyAmount > 0, the transaction value must be creationFee + creatorBuyAmount.
Token Address
All KasFun tokens have addresses ending in7777 (vanity address). The address is deterministic — computed from the salt and creator address: