Mathchain is a Web3 Software as a Service educational platform, its purpose is to have a better understanding about mathematical problems in domains such as calculus, algebra, geometry, artificial intelligence, etc. The approach of learning formulas consists of transforming classic 2D formulas into interactive 3D formulas. Each learning chapter concludes with an evaluation system, using the Wolfram Alpha API to generate mathematical problems.
- Interaction with 3D models.
- Generating and validating math problems.
- A Solidity Smart Contract deployed on Ethereum Sepolia testnet for payments to unlock step-by-step solutions.
- Decentralized authentication via Metamask/Phantom wallet.
Note
All formulas are rendered in Blender.
- Blazor WebAssembly — web interface
- MudBlazor — UI component library
- Three.js — 3D model rendering in browser
- KaTeX — LaTeX formula rendering
- JavaScript Interop — wallet integration
- ASP.NET Core Web API — REST API architecture
- Wolfram Alpha API — mathematical validation
- xUnit — unit testing framework
- C# / .NET 8
- Solidity — smart contract language
- Remix IDE — contract development and deployment
- Ethereum Sepolia Testnet — blockchain network
- Nethereum — C# Web3 integration
- WalletConnect v2 — wallet connectivity
Note
Mathchain was initially developed as a desktop application using WPF. However, realizing that an educational application like this is much better suited for the browser, the project was moved to Blazor WebAssembly. The original WPF prototype was deleted on 08.05.2026.
A hybrid architecture is used to maximize efficiency and minimize gas fees:
- Off-Chain Validation: Mathematical validation is handled by Wolfram Alpha..
- On-Chain SaaS Logic: Premium content unlocking is handled by a Smart Contract.
- Decentralized Identity: User identity is established through MetaMask/Phantom wallet signatures.
- Visual Studio 2022 or above installed.
- .NET 8 SDK installed.
- MetaMask/Phantom browser extension installed and a wallet funded with Sepolia Test ETH.
- A Wolfram Alpha Developer AppID.
- An Infura or Alchemy RPC URL for the Sepolia Testnet.
- A WalletConnect Cloud Project ID.
- A
.envfile located in the root of the WPF project containing the following variables:CONTRACT_ADDRESS=your_contract_address INFURA_RPC_URL=your_rpc_url WOLFRAM_API_KEY=your_wolfram_api_key PROJECT_ID=your_walletconnect_project_id
- Clone the repository.
- Create
.envfile with required variables. - Set Multiple Startup Projects: API + Blazor.
- Run the solution.
- Integrate the blockchain logic, including the step-by-step solution system.
- Implement Dashboard, Account and Settings pages in Blazor project.
- Bring more formulas from Blender.
- Add a scientific calculator for exercise page.
- Mobile version.
- This project is licensed under the MIT License.
