View Docker Installation section to install docker.
Step 2: Set up the node directory
Node home directory: ~/memo_user as an example:
export MEFS_PATH=~/memo_user
Node data storage directory: ~/memo_user_data as an example.
export MEFS_DATA=~/memo_user_data
The node home directory is the user directory and the node storage directory is the user node data storage directory.
Step 3: Pull image(User)
docker pull memoio/mefs-user:latest
Step 4: Initialization(Create new wallet)
docker run --rm -v $MEFS_PATH:/root --entrypoint mefs-user memoio/mefs-user:latest init --password=memoriae
Explanation of parameters:
--password: Enter your user node password, the default is memoriae.
init: Execute the initialization command, which will generate your wallet address and generate a configuration file.
Step 5: Get wallet address
docker run --rm -v $MEFS_PATH:/root --entrypoint mefs-user memoio/mefs-user:latest wallet default
Explanation of parameters:
wallet default: Get the default wallet address
Step 6: Top up
Starting node needs both the Memo and cMemo token.
This is the MemoChain information.
Memochain information
Currency name: CMEMO
Chain ID: 985
To get Memo Tokens for your wallet, you can transfer some Memo Tokens
from other wallet address which has enough Memo Tokens. The user needs minimum 1 Memo Tokens.
Join our discussing with Slack Link:
Step 7: Modify the configuration file
docker run --rm -v $MEFS_PATH:/root --entrypoint mefs-user memoio/mefs-user:latest config set --key=contract.version --value=3
docker run --rm -v $MEFS_PATH:/root --entrypoint mefs-user memoio/mefs-user:latest config set --key=contract.endPoint --value="https://chain.metamemo.one:8501"
docker run --rm -v $MEFS_PATH:/root --entrypoint mefs-user memoio/mefs-user:latest config set --key=contract.roleContract --value="0xbd16029A7126C91ED42E9157dc7BADD2B3a81189"
docker run --rm -v $MEFS_PATH:/root --entrypoint mefs-user memoio/mefs-user:latest bootstrap clear
Default in web, account: admin; password: memoriae.
Please make sure your user home directory and password are the same as in the previous step.
Check running status
Step 1: Enter the container
docker exec -it mefs-user bash
Step 2: Check user information
mefs-user info
----------- Information -----------
2022-03-23 10:42:36 CST #Current time
2.1.0-alpha+git.e759ff0+2022-03-22.15:51:16CST #mefs-user version information
----------- Network Information ----------- #network information
ID: 12D3KooWBpPPzk9srHVVU4kkVF1RPJi9nYNgV4e6Yjjd4PGr5qrk #network id
IP: [/ip4/10.2.2.61/tcp/18003] #Current node network information, 18003 is the swarm-port port, used for node communication
Type: Private
----------- Sync Information -----------
Status: true, Slot: 322885, Time: 2022-03-23 10:42:30 CST #Please check if your sync status is true, if it is false, please check your node network
Height Synced: 2640, Remote: 2640 #sync status
Challenge Epoch: 21 2022-03-23 09:55:30 CST
----------- Role Information -----------
ID: 29
Type: User
Wallet: 0xD2EC305EA80C6FCEF315029A806f52F27f3fB29a #Wallet address
Balance: 998.25 Gwei (tx fee), 998815392.06 NanoMemo (Erc20), 148075.99 NanoMemo (in fs) #balance
Data Stored: size 115294208 byte (109.95 MiB), price 113500000
----------- Group Information -----------
EndPoint: http://119.147.213.220:8191
Contract Address: 0xCa2C4103bd5679F43eC9E277C2bAf5598f94Fe6D
Fs Address: 0xFB9FF16EB4093aa8fFf762F2dF4E61d3A7532Af9
ID: 1 #group id
Security Level: 7
Size: 109.95 MiB
Price: 113500000
Keepers: 10, Providers: 16, Users: 4 #The number of nodes in the current group
----------- Pledge Information ----------
Pledge: 0 AttoMemo, 26.00 Memo (total pledge), 26.00 Memo (total in pool) #current pledge information
----------- Lfs Information ----------
Status: writable
Buckets: 1
Used: 1.82 GiB
Raw Size: 109.95 MiB
Confirmed Size: 109.95 MiB
OnChain Size: 109.95 MiB
Need Pay: 987173.29 NanoMemo
Paid: 987173.29 NanoMemo
Check net status
Get local node network information
Command description: Enter command net info to view the network id (cid), ip address and port of the current node.
mefs-user net info
Network ID 12D3KooWBpPPzk9srHVVU4kkVF1RPJi9nYNgV4e6Yjjd4PGr5qrk, IP [/ip4/10.2.2.61/tcp/18003], Type: Private
Get the network connection information of the node
Command description: Enter command net peers to view the network connection information of the current node.
Command description: Enter command net connect to connect to any node; if there is any problem with your node network, please enter command net connect to connect to our public node.
mefs-user net connect /ip4/10.2.x.x/tcp/8004/p2p/12D3KooWAykMmqu951ziotQiAYTN6SwfvBd1dsejSSak2jdSwryF
Restart after poweroff
If the account has been started, and then the computer has been shutted down, Docker, or "Windows PowerShell" was been closed, if you need to restart MEMO again, you need to open Docker first, then run the command line " docker start mefs-user" to start.