Token metadata
Read immutable token details, social links, and pool information.
Every Spawn token exposes its launch identity directly from the ERC-20 contract. These values do not depend on the discovery API.
Standard ERC-20 values
Use the standard functions for name, symbol, decimals, supply, balances, and allowances.
const erc20Abi = [
"function name() view returns (string)",
"function symbol() view returns (string)",
"function decimals() view returns (uint8)",
"function totalSupply() view returns (uint256)",
"function balanceOf(address account) view returns (uint256)",
];
Spawn tokens use 18 decimals and mint exactly one billion tokens to the launch factory for pool provisioning during creation.
Spawn metadata values
const spawnTokenAbi = [
"function deployer() view returns (address)",
"function logo() view returns (string)",
"function description() view returns (string)",
"function socials() view returns (string website,string x,string telegram,string discord,string other)",
"function getTokenInfo() view returns (address deployer,string logo,string description,(string website,string x,string telegram,string discord,string other) socials)",
];
getTokenInfo() returns the same deployer, logo, description, and social fields in one call. Social strings can be empty when the launcher omitted a channel.
Pool identity
The token stores the paired token and DEX factory as immutable values. Use these functions to discover its market.
const poolAbi = [
"function poolFee() view returns (uint24)",
"function pairToken() view returns (address)",
"function dexFactory() view returns (address)",
"function liquidityPool() view returns (address)",
"function getTokenPair() view returns (address pool,address pairedToken,address factory)",
];
Indexed metadata
The launchpad API combines on-chain identity with indexed prices, volume, trades, and market-cap values. Use the contract for immutable token identity and the API for discovery data that changes as swaps are indexed.