github.com/SmartMeshFoundation/Spectrum@v0.0.0-20220621030607-452a266fee1e/README.md (about) 1 # Spectrum 2 3 ![光谱logo2(1).png](https://upload-images.jianshu.io/upload_images/528413-0c926281c1d94539.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/440) 4 5 6 7 8 9 Spectrum is an [Ethereum-compatible](https://github.com/ethereum/go-ethereum) project. It uses a new consensus and new block reward for SmartMesh ecosystem devices and IOT. And you can view the transactions on the [ 10 BlockChain Browser Address](https://spectrum.pub). 11 12 13 Since the list of signers is 17, it is recommended that the confirmation number of general transfer transaction block be set to 17 (one round), and that of exchange block be set to 34 (two rounds). 14 15 ## List of Chain ID's: 16 | Chain(s) | CHAIN_ID | 17 | ---------- | :-----------:| 18 | mainnet | 20180430 | 19 | testnet | 2022 | 20 | devnet | 4 | 21 22 ## Warning 23 24 We suggest that the GasPrice should not be less than 18Gwei, otherwise the transaction may not be packaged into the block. 25 26 ## Build the source 27 28 Building Spectrum requires both a Go (version 1.15 or later) and a C compiler. You can install them using your favourite package manager. And you can view the detail installation and running steps on this [page](https://github.com/SmartMeshFoundation/Spectrum/wiki/Building-Specturm). 29 30 ## Run node 31 32 $ ./build/bin/smc console 33 34 ## Create new account 35 Users can create new account: 36 37 > personal.newAccount() 38 39 ## Get your own miner id 40 41 Every node has it's own miner id, you can run getMiner() function to get that id: 42 43 > tribe.getMiner() 44 45 ## Bind your own miner id to wallet address 46 47 Users can bind their miner ID to a wallet address: 48 49 > tribe.bind("account","passwd") 50 51 Or Users can only generate binding signatures at the terminal: 52 53 > tribe.bindSign("account") 54 55 ## Deposit smt to POC 56 57 Users can become miner by deposit smt: 58 59 > tribe.pocDeposit("account","passwd") 60 61 62 ## Start mining 63 64 Users can start mining or resume it: 65 66 > tribe.pocStart("account","passwd") 67 68 69 ## Stop mining 70 71 Users can stop mining: 72 73 > tribe.pocStop("account","passwd") 74 75 ## Withdraw smt 76 77 Users can withdraw smt: 78 79 > tribe.pocWithdraw("account","passwd") 80 81 ## More functions 82 Users can input tribe to view: 83 84 > tribe 85 86 ## Security-related 87 88 ### Encrypt your nodekey 89 90 $ ./build/bin/smc security --passwd 91 92 ### Decrypt your nodekey 93 94 $ ./build/bin/smc security --unlock 95 96