MyDexChain
MyDexChain is the newest technology for blockchain and can be used as a payment gateway.
MyDexChain: The official web page of MyDexChainDexLife: MyDexChain Masterlife Web PageAcademies: MyDexChain Trainings and Education Centers
This guide is used by dozens of product teams at MyDexChain. Have a question or comment? Open an issue!
MyDexChain Consensus
Public Release Notes
v2.3.6
- PRX Mining With ParexPackage(CloudTracker)
v2.3.5
- getFee
- getmyWallet
v2.3.4
- setCloudTracker
v2.3.3
- sync optimization
v2.3.2
- setMasterPackage
- Maximum Pool Member Limit Canceled
v2.3.1
- optimize sync
v2.3.0
- Mydexchain Node Offline Sync (Fastest Way) https://backup.mydexchain.io
v2.2.10
- online status optimized
v2.2.9
- fast syncing
v2.2.8
- getParexKey
v2.2.7
- IP Restrict and MAC Restrict (1 pc 1 DexTracker) or (1 pc 1 MasterTracker)
- Mining will start after synchronization is complete
- Maximum Pool Member Limit (DexTracker) : 200
v2.2.6
- masterTracker optimization
v2.2.5
- sendtransaction optimization
v2.2.4
- "http://{DockerHostIP}:2020/setPoolServiceFee/{percent}”
v2.2.3
- DXC Mining
- Dual Coin Mining (PRX)
v2.2.2
- Adding DRSProtocol (Duplicate Record Security Protocol)
- Locks same transaction one minute per node
v2.2.1
- Added Master Tracked (Now DeFi Supported)
- Docker Socket Extention fixed
v1.0.1
- Fixed PostgreSQL PID Lock Problem
- Fixed Block Logs
🔧 System Requirements
DexTracker
- MyDexChain Node Minimum Requirements:
2 Coreof CPU8GBof Memory and600GBof SSD - Tested Operation Systems
Windows Server 2016 or Later||Centos||Ubuntu||Amazon Linux - At Least
5mbitofInternet Connectionwith Port2020Ingress from Your IP Allowed
MasterTracker
- MyDexChain Node Minimum Requirements:
8 Coreof CPU16GBof Memory and800GBof SSD - Tested Operation Systems
Windows Server 2016 or Later||Centos||Ubuntu||Amazon Linux - At Least
20mbitofInternet Connectionwith Port2053Ingress from Your IP Allowed
📦 Pre-Installation Steps
docker -v
Output: Docker version 20.10.0, build 7287ab3
Mydexchain Node Offline Sync (Fastest Way)
To catchup block syncs we publish blocks in zipped format. You can download block archives and catchup quickly. This way is usefull for clean node deployements .
[Quick sync is only possible on initial setup. Do not use this way for current nodes.]
Steps:
- Start the node to trigger initial Database Schemas.
- Download the archive.
- Unzip files to docker volume.
- Start the node
Offline Blocks Link: https://backup.mydexchain.io
Commands to Execute:
wget https://backup.mydexchain.io/data-[date].tar.gz
Stop mydexchain node
docker kill mydexchain
Delete old data dir
rm -rf /var/lib/docker/volumes/mydexchain/_data/12
Untar archive to data dir
tar -zxvf data-[date].tar.gz -C /var/lib/docker/volumes/mydexchain/_data/
And start the node
docker run -d --rm -p 2020:2020 -p 2053:3030 -v mydexchain:/var/lib/postgresql/ --privileged --log-driver=none --name mydexchain mydexchain/mydexchain:latest
💻 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 -p 2053:3030 -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/setCloudTracker/{communitycode}”
communitycode : CloudTracker Key(communitycode)
"http://{DockerHostIP}:2020/setStartDXCMiner/”
"http://{DockerHostIP}:2020/setStartPRXMiner/”
"http://{DockerHostIP}:2020/getTrackerKey/”
trackerkey : TrackerKey for Purchase DexLife
"http://{DockerHostIP}:2020/setMasterPackage/{dexhash}”
dexhash : DexChain Transaction Hash
"http://{DockerHostIP}:2020/getParexKey/”
parexkey : ParexKey for Purchase Parex Package
"http://{DockerHostIP}:2020/setMasterTracker/{pool}&{hostname}&{percent}”
pool : MasterTracker Pool Namehostname : MasterTracker Host Namepercent : MasterTracker Pool Cost Percent % range (%5-%50)
"http://{DockerHostIP}:2020/setPoolServiceFee/{percent}”
percent : MasterTracker Pool Cost Percent % range (%5-%50)
"http://{DockerHostIP}:2020/setJoinPool/{poolapikey}”
poolapikey : MasterTracker PoolApiKey
"http://{DockerHostIP}:2020/setDextracker/{dexTrackerNumber}”
dexTrackerNumber : DexChain Tracker Numberdexhash: DexLife Transaction Hash
"http://{DockerHostIP}:2020/setAcademy/{academyContract}”
academyContract : DexChain Academy Contract
"http://{DockerHostIP}:2020/setActivist/{address}&{dexhash}”
address : DexChain Addressdexhash: Dexchain Transaction Hash
"http://{DockerHostIP}:2020/setProActivist/{address}”
address : DexChain Address
"http://{DockerHostIP}:2020/setDexClouder/{address}&{contract}”
address : DexChain Addresscontract : 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 Addresscontract: 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 Addresslimit: number of recordsorderby: ASC or DESC
"http://{DockerHostIP}:2020/getTransactionByBlock/{blockid}&{limit}&{orderby}”
blockid: Block ID (hex)limit: number of recordsorderby: ASC or DESC
"http://{DockerHostIP}:2020/getTransactionByBlockOffset/{blockid}&{limit}&{orderby}&{offset}”
blockid: Block ID (hex)limit: number of recordsorderby: ASC or DESCoffset: skip that many rows before beginning to return rows
"http://{DockerHostIP}:2020/getmyTransactionByBlock/{blockid}&{limit}&{orderby}”
blockid: Block ID (hex)limit: number of recordsorderby: ASC or DESC
"http://{DockerHostIP}:2020/sendTransaction/{sender}&{password}&{receiver}&{amount}&{fee}&{contract}&{description}"
sender : Sender Dexchain Addresspassword: Dexchain Address passwordreceiver: Receiver Dexchain Addressamount: Amount of DXCfee: Fee of Transaction (IN / OUT)contract: DexChain Contract Address (if null please set “mydexchain”)description: Statements of Transaction (if null please set “null”)
"http://{DockerHostIP}:2020/getSendToken/”
Token: Unique Token GUID
"http://{DockerHostIP}:2020/sendTransactionV2/{sendtoken}&{sender}&{password}&{receiver}&{amount}&{fee}&{contract}&{description}"
sendtoken : Unique Token GUIDsender : Sender Dexchain Addresspassword: Dexchain Address passwordreceiver: Receiver Dexchain Addressamount: Amount of DXCfee: Fee of Transaction (IN / OUT)contract: DexChain Contract Address (if null please set “mydexchain”)description: Statements of Transaction (if null please set “null”)
"http://{DockerHostIP}:2020/getFee/{amount}&{contract}"
fee: Fee DXC
"http://{DockerHostIP}:2020/getmyWallet/"
address: Dexchain Address
📚 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
Standard fee distribution
- %0,1 MasterTracker Bonus
- %0,1 DexClouder Bonus
- %0,1 DexConfirmer Bonus
Commercial fee distribution
- %0,1 DexClouder ProActivist Bonus
- %0,1 DexClouder Academy ProActivist Bonus
- %0,1 DexClouder Activist Bonus
- %0,1 DexClouder Academy Activist Bonus
- %0,1 DexClouder Beauty Bonus
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 ServicesAzureGoogle CloudYour Own Server/Desktop
What are the transaction status ?
SuccessPendingFail
MasterTracker requirements;
(Only vaild after 01/05/2021 purchases)
Each DexMining Package must be attached to 1 DexTracker.Each Master Package must be attached to 1 MasterTracker.MasterTracker ServiceFee range is (%5-%50)DexTracker revenues will be given hourly.
Miner requirements;
Minimum %90 Sync.
Parex Mining Calculating
| ~ | Max | Min | Avg |
|---|---|---|---|
| Hourly | 0.323 | 0.233 | 0.278 |
| Daily | 7.752 | 5.590 | 6.671 |
| Monthly | 232.560 | 167.700 | 200.130 |
| Yearly | 2790.720 | 2012.400 | 2401.560 |
How Can I Update to the Latest MyDexChain Version?
Run the command on Current DockerHost:
service docker start
docker kill mydexchain
docker pull mydexchain/mydexchain
docker run -d --rm -p 2020:2020 -p 2053:3030 -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
1. Stop MyDexChain Node Docker Container (For Data Consistency):
docker kill mydexchain
2. Copy /var/lib/docker/volumes/mydexchain to Backup Path:
rsync -avzhHP /var/lib/docker/volumes/mydexchain/ /backup_path/mydexchain/
3. Start MyDexChain Docker Container on the New Docker Host :
docker run -d --rm -p 2020:2020 -p 2053:3030 -v mydexchain:/var/lib/postgresql/ --privileged --log-driver=none --name mydexchain mydexchain/mydexchain:latest
4. Follow the Blocks :
docker attach mydexchain
Windows
1. Stop MyDexChain Node Docker Container (For Data Consistency):
docker kill mydexchain
2. Copy %USERPROFILE%\AppData\Local\Docker\wsl\data\ext4.vhdx to Backup Path:
3. Start MyDexChain Docker Container on the New Docker Host :
docker run -d --rm -p 2020:2020 -p 2053:3030 -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?
installed on target.
Linux & MacOs
1. Stop MyDexChain Node Docker Container:
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/ root@target_ip:/var/lib/docker/volumes/mydexchain/
3. Start MyDexChain Docker Container on the New Host :
docker run -d --rm -p 2020:2020 -p 2053:3030 -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
1. Stop MyDexChain Node Docker Container:
docker kill mydexchain
2. Copy Node Files to New Docker Host :
%USERPROFILE%\AppData\Local\Docker\wsl\data\ext4.vhdx --> to the new dockerhost
3. Start MyDexChain Docker Container on the New Host :
docker run -d --rm -p 2020:2020 -p 2053:3030 -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
How to run Test Mode
Test mode is used for making demo for DexChain Network. Do not use for production!
docker run -d --rm -p 2020:2020 -p 2053:3030 -v mydexchain:/var/lib/postgresql/ --privileged --log-driver=none --name mydexchaintestnet mydexchain/mydexchain:testnet
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
