Run DO Node
Hardware requirements​
- CPU: Intel Celeron or above, 8 cores or more recommended.
- Memory: 16 GB or above recommended.
- Disk: 100 GB or above recommended.
- Bandwidth: at least 100 Mbps upstream and downstream commercial bandwidth.
- Disk standard: SSD or NVMe medium to high-end solid-state drive.
Software requirements​
- Operating system: CentOS 7 or above.
Network requirements​
- Open ports
41516and41517.
If you do not want to synchronize from scratch, you can download the ledger data package:
Version iteration​
Versions v3.x and above changed the node hardware requirements and updated investment and staking rules.
- Node hardware configuration is limited to
2 coresand4 GB. - Valid node requirement:
20000 DO (Stake) + 500000 DO (Invested) = 520000 DO. - Node rules:
- Node stake:
20000 DO - Node investment: minimum
500000 DO, maximum1.5 million DO - Node commission ratio:
1%to50%
- Node stake:
- Investor rules:
- Minimum investment:
1500 DO - Single-node maximum investment:
1.5 million DO
- Minimum investment:
Configuring environment​
Before running the program, prepare the runtime environment and permissions.
- Download the main network program
don_v1.x.x_xxxx_devnetand place it in a directory with read, write, and execute permissions. - Add execute permission to the program.
chmod +x don_v1.x.x_xxxx_devnet
- Run the program. The
-mparameter enables the menu. Press0to exit the current program.
./don_v1.x.x_xxxx_devnet -m
- Check the generated directories and files in the current directory.

Document description​
| File or directory | Type | Description |
|---|---|---|
cert | Folder | Stores generated private key files with the .private suffix. |
data.db | Folder | Stores database files. |
config.json | JSON file | Configuration file. |
logs | Folder | Stores log files. |
contracts | Folder | Contract related files. |
Menu description​
| Serial Number | Menu items | Function |
|---|---|---|
| 1 | Transaction | Transaction |
| 2 | Stake | Stake |
| 3 | Unstake | Unstake |
| 4 | Invest | Invest |
| 5 | Disinvest | Disinvest |
| 6 | Get Rewards | Apply |
| 7 | PrintAccountInfo | Print account |
| 8 | Deploy contract | Deploy smart contracts |
| 9 | Call contract | Execute smart contracts |
| 10 | Account Manager | Account related management |
| 0 | Exit | Exit the program |
Menus​
1. Transaction​
Press 1 to enter the transaction interface.
Enter your account address.
tips
- The Base58 value is the account address.
- You can scroll up, find the green text, and copy the Base58 value.
- Do not use
Ctrl+CandCtrl+Vfor copying and pasting, becauseCtrl+Cexits the program.
Enter FromAddr, for example:
input FromAddr: 0xCA66A76E2a279050EF6b57797ac53199379abB9F
Enter the recipient address:
input ToAddr: 0xCA66A76E2a279050EF6b57797ac53199379abB9F
Enter the transaction amount:
input amount: 999999
Whether to search for UTXO across the entire network:
Whether to look for network-wide utxo status (1 means yes, 0 means no)
0
Enter a description for the transaction. Press Enter directly if you do not want to enter one:
Enter a description of the transaction, no more than 1 kb
Press Enter to submit.
2. Stake​
Press 2 to enter the stake interface.
Enter the amount to be staked. The minimum stake amount is 20000.
stake addr: 0xCA66A76E2a279050EF6b57797ac53199379abB9F
Please enter the amount to stake:
20000
Enter the reward withdrawal ratio, from 1 to 50, representing 1% to 50%:
Please input the bonus pumping percentage to stake (1 - 50):
5
Whether to search for UTXO across the entire network:
Whether to look for network-wide utxo status (1 means yes, 0 means no)
0
Enter a description for the transaction. Press Enter directly if you do not want to enter one:
Enter a description of the transaction, no more than 1 kb
3. Unstake​
Press 3 to enter the unstake interface.
Enter the unstake account:
Please enter unstake addr:
0xCA66A76E2a279050EF6b57797ac53199379abB9F
Enter the staked UTXO:
-- Current pledge amount: --
utxo: 3f4607d9e1ca341b3bee45110eecd2aaf1be5bba60bbdfe3ca44d68afae1b570 value: 200000000000
utxo: 3f4607d9e1ca341b3bee45110eecd2aaf1be5bba60bbdfe3ca44d68afae1b570
Whether to search for UTXO across the entire network:
Whether to look for network-wide utxo status (1 means yes, 0 means no)
0
Enter a description for the transaction. Press Enter directly if you do not want to enter one:
Enter a description of the transaction, no more than 1 kb
4. Invest​
Press 4 to enter the investment interface and enter your address.
AddrList:
0xCA66A76E2a279050EF6b57797ac53199379abB9F [default]
Please enter your addr:
0xCA66A76E2a279050EF6b57797ac53199379abB9F
Enter the target address to invest in:
Please enter the addr you want to invest to:
0xCA66A76E2a279050EF6b57797ac53199379abB9F
Enter the investment amount. The minimum investment amount is 1500.
Please enter the amount to invest:
1500
Whether to search for UTXO across the entire network:
Whether to look for network-wide utxo status (1 means yes, 0 means no)
0
Enter a description for the transaction. Press Enter directly if you do not want to enter one:
Enter a description of the transaction, no more than 1 kb
5. Disinvest​
Press 5 to enter the disinvest interface.
Enter the source address:
AddrList :
0xCA66A76E2a279050EF6b57797ac53199379abB9F [default]
Please enter your addr:
0xCA66A76E2a279050EF6b57797ac53199379abB9F
Enter the address you want to divest from:
Please enter the addr you want to divest from:
0xCA66A76E2a279050EF6b57797ac53199379abB9F
Enter the UTXO you want to divest:
======================================= Current invest amount: =======================================
Utxo: 366afab7d3931ff5e17cfc25c2dcaf2cf382b8623f22a605c4acc9fbba611dde
======================================================================================================
Please enter the utxo you want to divest:366afab7d3931ff5e17cfc25c2dcaf2cf382b8623f22a605c4acc9fbba611dde
6. Get Rewards​
Press 6 to enter the reward claiming interface.
Whether to search for UTXO across the entire network:
Whether to look for network-wide utxo status (1 means yes, 0 means no)
0
Enter a description for the transaction. Press Enter directly if you do not want to enter one:
Enter a description of the transaction, no more than 1 kb
7. PrintAccountInfo​
Press 7 to print account information.
*********************************************************************************
Version: 1_0.0.0_d
Base58: 1DqtUoPjmd7xKPYbRGUBMEJhQFLK9breQ2
Balance: 0.00000000
Block top: 0
*********************************************************************************
8. Deploy contract​
Press 8 to deploy a smart contract.
- The compiled binary code of the contract is saved in the
contractdirectory. - Rerun the node after preparing the contract files.
Enter the address of the contract deployer:
AddrList :
0x6a72ad3e9762d67D45a311954CdC6ad4693203a9 [default]
Please enter your addr:0x6a72ad3e9762d67D45a311954CdC6ad4693203a9
Whether to search for UTXO across the entire network:
Whether to look for network-wide utxo status (1 means yes, 0 means no)
0
Enter a description for the transaction. Press Enter directly if you do not want to enter one:
Enter a description of the transaction, no more than 1 kb
Fill in the contract path. If you enter 0, the default ./contract/contract file is used:
Please enter contract path : (enter 0 use default path ./contract/contract)
0
If the contract constructor has parameters, enter the binary code required for deployment. If Calldata is in contract.txt, it can be skipped directly. Otherwise, enter 0 to skip:
Please enter input data (enter 0 to skip):0
9. Call contract​
Press 9 to call a smart contract.
Enter the address of the contract executor:
AddrList :
0x6a72ad3e9762d67D45a311954CdC6ad4693203a9 [default]
Please enter your addr:0x6a72ad3e9762d67D45a311954CdC6ad4693203a9
Enter the deployer address:
=====================deployers======================
deployer: 0x855052fa258B463AEAd1E5abD55F2ffbCBb3F022
deployer: 0xcED97dA085527Fe7e1772CA59Aa1e64A78143128
=====================deployers======================
Please enter to addr:
0xeB3D7EBcc235A5B053F2735B18E16705a82216a3
Enter the contract address:
=====================contract addresses=====================
contract address: 0xE5370bF327AC024f0DF1d5d69dcd0B1a45f307B5
=====================contract addresses=====================
Please enter contract address:0xE5370bF327AC024f0DF1d5d69dcd0B1a45f307B5
Enter the parameters for the contract call:
Please enter args:
0xa0712d680000000000000000000000000000000000000000000000000000000000000001
Enter the tip amount for the assigned contract account. The default is 9:
input contract tip amount :100
Contract address transfer. If no transfer is required, enter 0:
input contract transfer amount :0
Whether to search for UTXO across the entire network:
Whether to look for network-wide utxo status (1 means yes, 0 means no)
0
Enter a description for the transaction:
Enter a description of the transaction, no more than 1 kb
10. Account Manager​
Manage accounts through menu item 10.
- Set Default Account
- Add Account
- Remove
- Import SeedKey
- Export SeedKey
Press 0 to exit the system.