Complete technical reference for building decentralized applications, custom smart contracts, autonomous AI agent colonies, and DePIN hardware fleets on MYCA Platform Blockchain (Chain ID 108).
What do you want to build?
Fastest 0→1 experience: Select your project type, claim instant testnet faucet, and execute live code.
Deploy edge nodes that operate completely severed from the Internet. Nodes synchronize locally via RS-485 Modbus, LoRa, or BLE, seal zero-gas micro-DAG vertices, and reconcile upon WAN restoration via Delay-Tolerant Networking (DTN):
// Initialize node in 100% offline air-gapped mode
const { OfflineAirGapEngine } = require('@myca/sdk');
const offlineNode = new OfflineAirGapEngine({
transport: 'RS485_MODBUS', // or 'LORA_868MHZ', 'BLE_MESH'
pufEntropySource: 'SRAM_WAFER',
autoReconciliation: true
});
// Derive local Silicon PUF identity without WAN/DNS
const identity = await offlineNode.deriveLocalIdentity();
console.log('Air-gapped Machine DID:', identity.did); // did:myc:puf:0x...
// Record telemetry & mint local 0-gas micro-DAG vertex
const vertex = await offlineNode.sealLocalVertex({
action: 'VALVE_PRESSURE_CALIBRATION',
payload: { psi: 142.8, tempC: 21.4 },
state: 'SEALED_OFFLINE'
});
// When WAN link returns, DTN reconciles seamlessly with global DAG
offlineNode.on('wan_reconnected', async () => {
const syncReport = await offlineNode.reconcileDTNGossip();
console.log(`Reconciled ${syncReport.syncedVertices} vertices with Living Lattice DAG.`);
});
10-Pillar Post-Quantum & Physical Hardening Armor
Protect high-value DePIN physical infrastructure from Shor/Grover quantum attacks and prompt-injection hallucinations:
const ws = new WebSocket('ws://localhost:4041');
ws.onopen = () => {
// Subscribe to all contract and bridge events
ws.send(JSON.stringify({
action: 'subscribe',
topic: 'contract:*'
}));
};
ws.onmessage = (e) => {
const event = JSON.parse(e.data);
console.log('Received Event:', event.topic, event.data);
};
2. Server-Sent Events (SSE) (GET /api/events)
const eventSource = new EventSource('http://localhost:4040/api/events?topic=swap:*');
eventSource.onmessage = (e) => {
const data = JSON.parse(e.data);
console.log('Real-time Swap Event:', data);
};
🎮 Arcade & Real-Time Game Development
38.4 µs DETERMINISTIC EDGE • ZERO-GAS
MYCA provides an ultra-low latency blockchain edge substrate designed for Web3 gaming, interactive arcade titles, and high-frequency multiplayer state synchronization without player gas friction.
Gaming Engine Invariant
MYCA Implementation
Benefit for Game Studios
Zero-Gas Player Loop
Zero-gas invariant enforced on Chain ID 108
Players execute millions of micro-actions (attacks, hits, inventory drops) with 0 transaction fees.
Deterministic Edge Physics
38.4 µs C99 bare-metal kernel execution
Sub-millisecond state validation faster than a single frame at 144Hz (6.9ms).
Hardware Anti-Cheat
Silicon PUF & Modbus RTU telemetry signature
Cryptographic proof that game events originate from un-tampered client binaries.
Automated Tournament Escrows
MycEscrow with PoR multi-party release
Trustless entry fee staking and automated prize distribution to winners upon match completion.
Step 1: Connect Game Client via WebSocket or REST
Initialize the connection to the MYCA gaming engine from your browser, Node.js, Unity C#, or Godot engine:
// JavaScript / TypeScript Game Client
import { MycGameClient } from '@myca/sdk';
const game = new MycGameClient({
nodeUrl: 'http://localhost:4040',
wsUrl: 'ws://localhost:4041',
gameId: 'ARCADE_SPORE_ESCAPE',
playerAddress: 'myc14d29b6c4b38b2ac4a6e2bbb9c4d7c002'
});
// Subscribe to real-time multiplayer arcade leaderboard & game events
game.on('GameStateSync', (event) => {
console.log(`[Lattice Tick] Leaderboard Rank: #${event.rank} | Score: ${event.score}`);
});
Step 2: Submit In-Game Actions with Zero-Gas Invariant
When players clear a wave, eliminate a boss, or submit high scores, dispatch the event via POST /api/game/action:
Unlike legacy static NFTs, Resonance Assets (ERC-721R) are dynamic, living economic artifacts inspired by four foundational physical and societal principles:
Pillar
Core Concept
Smart Contract Rule (MycResonanceAsset.sol)
1. Einstein Layer
Conservation & Dynamic Vitality
Value increases with activity. Unmaintained assets decay gradually after a 30-day grace period.
2. Tesla Layer
Frequency Harmonics & Synergistic Bonding
8D harmonic frequency vector. Assets with cosine similarity ≥ 0.65 bond synergistically for energy boosts.
3. Heisenberg Layer
Observer Effect & Provenance Context
Observation alters state. Records witness context metadata. 10 unique observers trigger the DISCOVERED bonus (+500 energy).
4. Atatürk Layer
Institutional Permanence & Fractional Commons
Collective perpetuity: 10,000 basis points of fractional equity for guild co-ownership and DAO governance.
Lifecycle Step-by-Step Tutorial
1. Minting an ERC-721R Living Asset
// Minting a Living Resonance Asset with 8D Harmonics & Dominant Frequency (e.g. 432 Hz)
const res = await fetch('http://localhost:4040/api/resonance/mint', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
uri: 'ipfs://bafkrei_spore_crystal_blade.json',
harmonics: [7800, 8500, 9200, 6400, 8900, 7100, 9600, 8300],
dominantHz: 432,
decayRate: 10
})
});
const { tokenId, contractAddress } = await res.json();
console.log(`✅ Living NFT Minted | Token ID: #${tokenId} at ${contractAddress}`);
2. Recharging Vitality through In-Game Utility (Einstein)
🌐 NFT = Colony Node (Ownership is Participation: Living Machine Paradigm)
DECENTRALIZED COMPUTE COMMONS
In traditional Web3, NFTs are passive: Buy → wait → speculate. On MYC Network, a Living Resonance Asset is not a membership pass, but a living machine: Acquire → operate → earn USDC → boost energy & tier → sell (or continue earning residual yield). An NFT's market value is grounded in provable work produced for the network, not speculation.
1. USDC → NFT Owner: 95% net reward to owner, 5% to protocol commons treasury. 2. Energy → NFT: Commercial task completion awards +600 energy (can escalate tier). 3. Reputation → Node: On-chain success score increases by +10, improving priority.
⚠️ Temporal Entropy: An NFT idle for 30 days loses energy → demotes tier → receives fewer tasks.
3-Line Seamless Smart Contract Integration
// 1. In mint(): NFT is instantly registered as an active Colony node
nodeRegistry.registerNode(tokenId, msg.sender, NodeRole.COLONY_PEER, NodeTier.SEED, 1000);
// 2. In interact(): Energy updates as tasks complete, recalibrating Colony scheduler tier
emit NodeEnergyUpdated(tokenId, energyScore[tokenId]);
nodeRegistry.updateNodeEnergy(tokenId, energyScore[tokenId]);
// 3. In _afterTokenTransfer(): Node ownership & yield routing transfer atomically upon sale
nodeRegistry.transferNodeOwnership(tokenId, newOwner);
In traditional NFT markets, pricing relies on speculation. On MYC, because an NFT is a live Colony node, pricing is derived mathematically from verified 30-day on-chain task execution and USDC yields.
// GET /api/resonance/valuation?id=42
{
"tokenId": 42,
"currentEnergy": 6800,
"tier": "RESONANT",
"last30Days": {
"tasksCompleted": 847,
"usdcEarned": 423.50,
"avgDailyYield": 14.12 // USDC / day (Verified cashflow)
},
"impliedValue": {
"paybackPeriod": "71 days", // Break-even horizon based on production
"annualYield": 5148.00, // USDC / year estimated gross yield
"energyTrajectory": "RISING",// Energy trajectory: RISING, STABLE, DECAYING
"fairPriceUSDC": 1050.50 // Capitalized fair value multiple
},
"resonanceBonds": 3, // Number of coherent partner nodes bonded
"bondMultiplier": 1.24 // Tesla frequency resonance multiplier
}
🏪 2. Living Machine Marketplace (Decay-Protected Secondary Trading)
MycResonanceMarketplace.sol
Developers and investors can list working machines. Thanks to the minEnergy guard, if an inactive machine decays below the promised energy threshold, buyers are protected and orders cancel automatically. Colony node ownership and revenue routing transfer atomically upon purchase:
For owners who prefer not to run server hardware, MYC provides non-custodial delegation: retain 100% asset custody while delegating execution rights to a verified Colony operator. Task rewards are split automatically by smart contract:
💎 Live Interactive Resonance Asset SandboxERC-721R
Secondary Market Valuation with Real Production Telemetry
Computes payback period and annual yield projections based on 30-day task volume, USDC earnings, and daily average cashflow.
Living Machine Secondary Marketplace
List machines with minEnergy protection locks or buy instantly. USDC settles atomically via escrow and Colony node execution rights transfer immediately to the buyer.
Non-Custodial Staking & Hardware Delegation
Keep NFT ownership in your wallet while assigning operational execution rights to a Colony operator. Rewards are split automatically by contract (e.g. 70% owner / 30% operator).
Living Machine Operator Console
View your NFT's real-time capacity on the Colony Mesh, complete live tasks to claim 95% net USDC and +600 energy, or transfer machine operator control to another address.
Core Smart Contracts on Chain ID 108
Contract
Address
Standard
MycToken ($MYC)
myc1c3502d27aa5bbeb948d1ec7e812f6090
Substrate Native ERC20
MycUSDToken ($USDT)
myc1c06dd0aa90e2040ec55f29771c2e272b
6-Decimal Tether ERC20
MycUSDCToken ($USDC)
myc1c42542ba58f45dd5498cf5d24be70337
6-Decimal USD Coin ERC20
MycBridge
myc1c040466016d07ac2752822a603761127
BFT 2/3+1 Multi-Asset Bridge
MycDEX (Resonance)
myc1c498e86015b7c417a13232ea56311c90
AMM Constant-Product DEX
MycEscrow
myc1c4e6f0a1897130608866b20c8476163c
Dual-PoR Agent Escrow
MycResonanceAsset (ERC-721R)
myc1c4a70773bf3db2ce7ccbe38e1e95a074
Living Resonance Asset (4-Pillars)
GET /api/wallet/balance
Fetch real-time on-chain balances for all 3 tokens ($MYC, $USDT, $USDC):
The sovereign cross-chain bridge connects the MYCA Living Lattice (Chain ID 108) with EVM ecosystems (Base, Arbitrum, Ethereum) using BFT 2/3 + 1 supermajority quorum and Merkle inclusion proofs.
1. Base (EVM 8453) ➔ MYCA Lattice (Chain 108) [Inbound]
Verify a lock event on Base and credit the recipient on MYCA with 0 gas fee: