Integration Guide

Developers can integrate with Spheres.fun by calling our smart contracts directly through any HyperEVM RPC endpoint.

Below you'll find the complete contract interface and deployment details for our protocol:

Network Configuration:

Official Deployment Addresses:

TOKEN_FACTORY = 0x604181Fd9182820c8c6D9cD43a699eCFb678F9Af
BONDING_CURVE = 0x106A8AE46EB4579d1C88b2F6018b3c511E0C0d57
TOKEN_REGISTRY = 0x056aF20fd18Ca0F7e199727706455f5461c735e5
DEX_MIGRATION = 0x2F1fEa33c56d992d1406e1E8BD8f7173bbf21Ca9

Core Trading Functions:

solidity"function buyTokens(address token, uint256 minTokenAmount) external payable"
solidity"function sellTokens(address token, uint256 tokenAmount, uint256 minHypeAmount) external"
solidity"function getCurrentPrice(address token) public view returns (uint256)"
solidity"function calculateBuyAmount(address token, uint256 hypeAmount) public view returns (uint256)"
solidity"function calculateSellAmount(address token, uint256 tokenAmount) public view returns (uint256)"

Token Discovery Functions:

solidity"function getAllTokensCount() public view returns (uint256)"

Token Information Functions:

Last updated