mydexchain / mydexchain
- вторник, 12 января 2021 г. в 00:25:24
MyDexChain is the newest technology for blockchain
and can be used as a payment gateway.
MyDexChain
: The official web page of MyDexChainMyDexPay
: MyDexChain Masterlife Web PageAcademy
: MyDexChain Trainings and Education CentreThis guide is used by dozens of product teams at MyDexChain. Have a question or comment? Open an issue!
2 Core
of CPU 4GB
of Memory and 100GB
of HDDWindows Server 2016 or Later
|| Centos
|| Ubuntu
|| Amazon Linux
5mbit
of Internet Connection
with Port 2020
Egress AllowedMyDexChain is fully docker compatible and please follow Windows, Centos, Ubuntu, Amazon Linux, MAC OS installation steps before running MyDexChain Node. After docker installation open a command line || terminal and run command to check the docker version.
docker -v
Output: Docker version 20.10.0, build 7287ab3
MyDexChain docker file is stored in dockerhub and ready for use with command: (Please check the version and use as tag rather than latest)
docker run -d --rm -p 2020:2020 -v mydexchain:/var/lib/postgresql/ --privileged --log-driver=none --name mydexchain mydexchain/mydexchain:latest
After docker container comes up run the command;
docker ps
Output: db641c6c55b7 mydexchain/mydexchain "/startup.sh" 32 seconds ago Up 31 seconds 0.0.0.0:2020->2020/tcp, 5432/tcp mydexchain
docker attach mydexchain
"http://{DockerHostIP}:2020/setDextracker/{dexTrackerNumber}”
dexTrackerNumber : DexChain Tracker Number
“http://{DockerHostIP}:2020/isWallet/{address}”
address: Dexchain Address
"http://{DockerHostIP}:2020/balanceWallet/{address}"
address: Dexchain Address
“http://{DockerHostIP}:2020/createWallet/{password}”
password: Dexchain Address password “Please Don’t Forget it”
"http://{DockerHostIP}:2020/getTransactions/{address}&{limit}”
address: Dexchain Address
limit: number of records
"http://{DockerHostIP}:2020/sendTransaction/{sender}&{password}&{receiver}&{amount}&{fee}&{contract}&{description}"
sender : Sender Dexchain Address
password: Dexchain Address password
receiver: Receiver Dexchain Address
amount: Amount of XMD
fee: Fee of Transaction
contract: DexChain Contract Address (if null please set “mydexchain”)
description: Statements of Transaction (if null please set “null”)
You can run MyDexChain Node on
Amazon Web Services
Azure
Google Cloud
Your Own Server/Desktop
Run the command on Current DockerHost:
docker kill mydexchain && docker pull mydexchain/mydexchain && docker run -d --rm -p 2020:2020 -v mydexchain:/var/lib/postgresql/ --privileged --log-driver=none --name mydexchain mydexchain/mydexchain:latest
These options are settings that change shell behavior. The following table is a list of options that might be useful to you:
Check | How |
---|---|
Cannot connect to the Docker daemon. Is the docker daemon running on this host? | Check your docker service is up and running. |
Block Sync is not working | Check your internet connectivity. |
MyDexCahin maps blocks inside PostgreSQL and it has been addressed inside dockerfile. All the data is saved inside /var/lib/docker/volumes/mydexchain
and make sure that you backup the folder.
Transaction Amount | Fee % | Fee Amount |
---|---|---|
1000 | 0.003 | 3.00 |
10000 | 0.0003 | +2.70 |
100000 | 0.00003 | +2.70 |
1000000 | 0.000003 | +2.70 |
10000000 | 0.0000003 | +2.70 |
100000000 | 0.00000003 | +2.70 |
1000000000 | 0.000000003 | +2.70 |
10000000000 | 0.0000000003 | +2.70 |
100000000000 | 0.00000000003 | +2.70 |
24.60 |
25000 myDexChain Transaction = (1000 x 0.003) + (9000 x 0.0003) + (15000 x 0.00003) = 6.150 Fee
MyDexChain
Node Docker Container (For Data Consistency):docker kill mydexchain
/var/lib/docker/volumes/mydexchain
to Backup Path:rsync -avzhHP /var/lib/docker/volumes/mydexchain/ /backup_path/mydexchain/
MyDexChain
Docker Container on the New Docker Host :docker run -d --rm -p 2020:2020 -v mydexchain:/var/lib/postgresql/ --privileged --log-driver=none --name mydexchain mydexchain/mydexchain:latest
docker attach mydexchain
MyDexChain
Node Docker Container (For Data Consistency):docker kill mydexchain
%USERPROFILE%\AppData\Local\Docker\wsl\data\ext4.vhdx
to Backup Path:MyDexChain
Docker Container on the New Docker Host :docker run -d --rm -p 2020:2020 -v mydexchain:/var/lib/postgresql/ --privileged --log-driver=none --name mydexchain mydexchain/mydexchain:latest
docker attach mydexchain
Before migrating your node be sure that docker is installed on target
.
MyDexChain
Node Docker Container:docker kill mydexchain
rsync -avzhHP --rsync-path="sudo rsync" -e "ssh -i key -o StrictHostKeyChecking=no" /var/lib/docker/volumes/mydexchain/ root@target_ip:/var/lib/docker/volumes/mydexchain/
MyDexChain
Docker Container on the New Host :docker run -d --rm -p 2020:2020 -v mydexchain:/var/lib/postgresql/ --privileged --log-driver=none --name mydexchain mydexchain/mydexchain:latest
docker attach mydexchain
MyDexChain
Node Docker Container:docker kill mydexchain
%USERPROFILE%\AppData\Local\Docker\wsl\data\ext4.vhdx --> to the new dockerhost
MyDexChain
Docker Container on the New Host :docker run -d --rm -p 2020:2020 -v mydexchain:/var/lib/postgresql/ --privileged --log-driver=none --name mydexchain mydexchain/mydexchain:latest
docker attach mydexchain
Make sure Use the WSL 2 based engine
is enabled in Docker General Settings.
Mount folder is located under:
\\wsl$\docker-desktop-data\version-pack-data\community\docker\volumes
Mount disk is located under:
%USERPROFILE%\AppData\Local\Docker\wsl\data\ext4.vhdx
No problem. Reach out to us by opening an issue
DRC-8 (Main Contract)
DRC-16 (Token)
DRC-32 (Survey, Advertisement, Announcement)
DRC-64 (Internet of Things)
DRC-128 (Artificial Intelligent, Big Data)
Cloud Market Deployments