Mycelium decentralized cloud platform - OpenRPC account ledger server
  • Rust 90.2%
  • JavaScript 9.7%
Find a file
2026-06-10 21:22:20 +00:00
docs/schemas development_freeze: freeze OSIS/oserver + contemporary herolib byte-for-byte onto pristine macros_previous mirrors (frozen_73ff6220 + frozen_herolib_e519cb1); replaces dead local patches; blueprint-free, builds green 2026-06-09 19:06:44 +00: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 development_freeze: freeze OSIS/oserver + contemporary herolib byte-for-byte onto pristine macros_previous mirrors (frozen_73ff6220 + frozen_herolib_e519cb1); replaces dead local patches; blueprint-free, builds green 2026-06-09 19:06:44 +00:00
.gitignore chore: Add .DS_Store to data directory 2026-03-11 11:07:57 +02:00
build.rs feat: add hero_mycelium OpenRPC service 2026-02-18 19:28:56 +02:00
Cargo.lock development_freeze: freeze OSIS/oserver + contemporary herolib byte-for-byte onto pristine macros_previous mirrors (frozen_73ff6220 + frozen_herolib_e519cb1); replaces dead local patches; blueprint-free, builds green 2026-06-09 19:06:44 +00:00
Cargo.toml development_freeze: freeze OSIS/oserver + contemporary herolib byte-for-byte onto pristine macros_previous mirrors (frozen_73ff6220 + frozen_herolib_e519cb1); replaces dead local patches; blueprint-free, builds green 2026-06-09 19:06:44 +00: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.