mydexchain / Mydexchain
Labels
Projects that are alternatives of or similar to Mydexchain
MyDexChain
MyDexChain is the newest technology for blockchain
and can be used as a payment gateway.
-
MyDexChain
: The official web page of MyDexChain -
DexLife
: MyDexChain Masterlife Web Page -
Academies
: MyDexChain Trainings and Education Centers
This guide is used by dozens of product teams at MyDexChain. Have a question or comment? Open an issue!
Release Notes
1.0.1
- Fixed PostgreSQL PID Lock Problem
- Fixed Block Logs
🔧 System Requirements
- MyDexChain Node Minimum Requirements:
2 Core
of CPU4GB
of Memory and100GB
of HDD - Tested Operation Systems
Windows Server 2016 or Later
||Centos
||Ubuntu
||Amazon Linux
- At Least
5mbit
ofInternet Connection
with Port2020
Ingress from Your IP Allowed
📦 Pre-Installation Steps
⚠️ MyDexChain 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
💻 Usage
1. Run MyDexChain:
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
2. Follow Blocks:
docker attach mydexchain
3. Node RestAPI commands :
"http://{DockerHostIP}:2020/setDextracker/{dexTrackerNumber}”
dexTrackerNumber : DexChain Tracker Number
"http://{DockerHostIP}:2020/setAcademy/{academyContract}”
academyContract : DexChain Academy Contract
"http://{DockerHostIP}:2020/setActivist/{address}&{dexhash}”
address : DexChain Address
dexhash: Dexchain Transaction Hash
"http://{DockerHostIP}:2020/setProActivist/{address}”
address : DexChain Address
"http://{DockerHostIP}:2020/setDexClouder/{address}&{contract}”
address : DexChain Address
contract : DexStore Contract Address
"http://{DockerHostIP}:2020/setNickname/{nickName}”
nickName : DexChain Tracker Nickname
“http://{DockerHostIP}:2020/isWallet/{address}”
address: Dexchain Address
"http://{DockerHostIP}:2020/balanceWallet/{address}"
address: Dexchain Address
"http://{DockerHostIP}:2020/balanceToken/{address}&{contract}"
address: Dexchain Address
contract: DexChain Contract Address (if null please set “mydexchain”)
“http://{DockerHostIP}:2020/createWallet/{password}”
password: Dexchain Address password “Please Don’t Forget it”
"http://{DockerHostIP}:2020/getLastBlock/"
Last Block
"http://{DockerHostIP}:2020/getTransactionByDexHash/{dexhash}"
dexhash: Dexchain Transaction Hash
"http://{DockerHostIP}:2020/getTransactions/{address}&{limit}&{orderby}”
address: Dexchain Address
limit: number of records
orderby: ASC or DESC
"http://{DockerHostIP}:2020/getTransactionByBlock/{blockid}&{limit}&{orderby}”
blockid: Block ID (hex)
limit: number of records
orderby: ASC or DESC
"http://{DockerHostIP}:2020/getTransactionByBlockOffset/{blockid}&{limit}&{orderby}&{offset}”
blockid: Block ID (hex)
limit: number of records
orderby: ASC or DESC
offset: skip that many rows before beginning to return rows
"http://{DockerHostIP}:2020/getmyTransactionByBlock/{blockid}&{limit}&{orderby}”
blockid: Block ID (hex)
limit: number of records
orderby: ASC or DESC
"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 (IN / OUT)
contract: DexChain Contract Address (if null please set “mydexchain”)
description: Statements of Transaction (if null please set “null”)
📚 FAQ
How Can I Calc Fee
Sample Fee Calculation
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
What are the DRC (Dexchain Request Contract) Types
DRC-4 (Academy Contract)
DRC-8 (Main Contract)
DRC-16 (Token)
DRC-32 (Survey, Advertisement, Announcement)
DRC-64 (Internet of Things)
DRC-128 (Artificial Intelligent, Big Data)
Where Can I Run MyDexChain Node?
You can run MyDexChain Node on
Amazon Web Services
Azure
Google Cloud
Your Own Server/Desktop
How Can I Update to the Latest MyDexChain Version?
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
Common Problems
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. |
How to Backup the MyDexChain Node?
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.
Linux & MacOs
MyDexChain
Node Docker Container (For Data Consistency):
1. Stop docker kill mydexchain
/var/lib/docker/volumes/mydexchain
to Backup Path:
2. Copy rsync -avzhHP /var/lib/docker/volumes/mydexchain/ /backup_path/mydexchain/
MyDexChain
Docker Container on the New Docker Host :
3. Start docker run -d --rm -p 2020:2020 -v mydexchain:/var/lib/postgresql/ --privileged --log-driver=none --name mydexchain mydexchain/mydexchain:latest
4. Follow the Blocks :
docker attach mydexchain
Windows
MyDexChain
Node Docker Container (For Data Consistency):
1. Stop docker kill mydexchain
%USERPROFILE%\AppData\Local\Docker\wsl\data\ext4.vhdx
to Backup Path:
2. Copy
MyDexChain
Docker Container on the New Docker Host :
3. Start docker run -d --rm -p 2020:2020 -v mydexchain:/var/lib/postgresql/ --privileged --log-driver=none --name mydexchain mydexchain/mydexchain:latest
4. Follow the Blocks :
docker attach mydexchain
How to Migrate the MyDexChain Node to Another Docker Host?
⚠️ Before migrating your node be sure that docker is installed on target
.
Linux & MacOs
MyDexChain
Node Docker Container:
1. Stop docker kill mydexchain
2. Copy Node Files to New Docker Host :
rsync -avzhHP --rsync-path="sudo rsync" -e "ssh -i key -o StrictHostKeyChecking=no" /var/lib/docker/volumes/mydexchain/ [email protected]_ip:/var/lib/docker/volumes/mydexchain/
MyDexChain
Docker Container on the New Host :
3. Start docker run -d --rm -p 2020:2020 -v mydexchain:/var/lib/postgresql/ --privileged --log-driver=none --name mydexchain mydexchain/mydexchain:latest
4. Follow the Blocks on the New Docker Host :
docker attach mydexchain
Windows
MyDexChain
Node Docker Container:
1. Stop docker kill mydexchain
2. Copy Node Files to New Docker Host :
%USERPROFILE%\AppData\Local\Docker\wsl\data\ext4.vhdx --> to the new dockerhost
MyDexChain
Docker Container on the New Host :
3. Start docker run -d --rm -p 2020:2020 -v mydexchain:/var/lib/postgresql/ --privileged --log-driver=none --name mydexchain mydexchain/mydexchain:latest
4. Follow the Blocks on the New Docker Host :
docker attach mydexchain
I am Getting Errors in Windows OS?
Make sure Use the WSL 2 based engine
is enabled in Docker General Settings.
Where is the Docker Mount Volume Located in Windows OS?
Mount folder is located under:
\\wsl$\docker-desktop-data\version-pack-data\community\docker\volumes
Where is the Pyhsical Path Docker Mount Volume Located in Windows OS?
Mount disk is located under:
%USERPROFILE%\AppData\Local\Docker\wsl\data\ext4.vhdx
Help! It's not working for me!
No problem. Reach out to us by opening an issue
Roadmap
- We are hardly working on new features:
Cloud Market Deployments