Mycelium decentralized cloud platform - OpenRPC account ledger server
- Rust 83.8%
- JavaScript 16.1%
- Makefile 0.1%
|
|
||
|---|---|---|
| docs/schemas | ||
| schemas/mycelium | ||
| sdk/js | ||
| src | ||
| .gitignore | ||
| build.rs | ||
| Cargo.lock | ||
| Cargo.toml | ||
| Makefile | ||
| README.md | ||
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.