Mycelium decentralized cloud platform - OpenRPC account ledger server
  • Rust 83.8%
  • JavaScript 16.1%
  • Makefile 0.1%
Find a file
2026-02-19 09:02:52 +00:00
docs/schemas feat: add hero_mycelium OpenRPC service 2026-02-18 19:28:56 +02:00
schemas/mycelium feat: add hero_mycelium OpenRPC service 2026-02-18 19:28:56 +02:00
sdk/js feat: add hero_mycelium OpenRPC service 2026-02-18 19:28:56 +02:00
src feat: add hero_mycelium OpenRPC service 2026-02-18 19:28:56 +02:00
.gitignore docs: Add initial documentation for Mycelium service 2026-02-19 10:41:17 +02:00
build.rs feat: add hero_mycelium OpenRPC service 2026-02-18 19:28:56 +02:00
Cargo.lock feat: add hero_mycelium OpenRPC service 2026-02-18 19:28:56 +02:00
Cargo.toml feat: add hero_mycelium OpenRPC service 2026-02-18 19:28:56 +02:00
Makefile feat: add hero_mycelium OpenRPC service 2026-02-18 19:28:56 +02:00
README.md docs: Add initial documentation for Mycelium service 2026-02-19 10:41:17 +02:00

Hero Mycelium

OpenRPC server for the Mycelium decentralized cloud platform.

Overview

This service acts as a temporary centralized ledger for Mycelium accounts until the real Mycelium blockchain is live. It bridges:

  • hero_auth (port 3350) — user authentication, JWT tokens
  • TF Chain — ThreeFold blockchain (node ownership, wallet transactions)

Running

# Set the shared secret (same as hero_auth)
export HERO_SECRET=your_secret

# Run the server
make run

Server starts on http://localhost:3351

RPC endpoint: POST /api/root/mycelium/rpc

API Methods

Method Description
myceliumservice.register Register a new Mycelium account
myceliumservice.get_account Get account details (requires ownership)
myceliumservice.transfer_node Transfer a TF Grid node to Mycelium
myceliumservice.exchange_tft_to_spore Exchange TFT tokens for SPORE

Data Types

  • MyceliumAccount — user account with spore_balance
  • MyceliumNode — transferred TF Grid nodes
  • TftTransaction — TFT-to-SPORE exchange records

Development

make check  # Fast compilation check
make build  # Build binary
make test   # Run tests

Schema

See schemas/mycelium/mycelium.oschema for the full type definitions.