ETHBLOX
ETHBLOX

Smart Contracts

Contract interfaces and blockchain integration.

Deployed Contracts

⚠️ Testnet Only

Contracts are currently on Base Sepolia testnet. Mainnet launch TBA.

BLOX Token

  • Address: 0x... (Coming soon)
  • Type: ERC-20
  • Standard: OpenZeppelin implementation

Build Registry

  • Address: 0x... (Coming soon)
  • Type: ERC-721 (NFT)
  • Metadata: IPFS storage

Contract Interfaces

IBuildRegistry

interface IBuildRegistry {
  function mintBuild(
    string memory name,
    string memory metadataURI,
    uint256 mass,
    uint256 uniqueColors
  ) external returns (uint256 tokenId);
  
  function destroyBuild(uint256 tokenId) external;
  
  function getBuildMetadata(uint256 tokenId) 
    external view returns (BuildMetadata memory);
}

Metadata Standard

{
  "name": "My Dog Build",
  "description": "A voxel sculpture of a dog",
  "image": "ipfs://Qm...",
  "attributes": [
    { "trait_type": "Mass", "value": 42 },
    { "trait_type": "Colors", "value": 5 },
    { "trait_type": "Builder Weight", "value": 12.3 }
  ],
  "geometry": "ipfs://Qm..." // Full brick array
}