Skip to main content

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 41516 and 41517.

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.

  1. Node hardware configuration is limited to 2 cores and 4 GB.
  2. Valid node requirement: 20000 DO (Stake) + 500000 DO (Invested) = 520000 DO.
  3. Node rules:
    • Node stake: 20000 DO
    • Node investment: minimum 500000 DO, maximum 1.5 million DO
    • Node commission ratio: 1% to 50%
  4. Investor rules:
    • Minimum investment: 1500 DO
    • Single-node maximum investment: 1.5 million DO
VersionFormalTestLedger data
v3.4.1don_v3.4.1_6a26b18_primarynet.zipdon_v3.4.0_aeef62d_testnet.zip
v3.3.0don_v3.3.0_aed09bb_primarynet.zip
v3.2.0don_v3.2.0_804ce8f_primarynet.zipdon_v3.2.0_9ebacb4_testnet.zip
v3.1.0don_v3.1.0_9f35181_primarynet.zipdon_v3.1.0_6fdcaa4_testnet.zip
v3.0.0don_v3.0.0_036f95d_primarynet.zipdon_v3.0.0_c1ddae0_testnet.zip

Configuring environment​

Before running the program, prepare the runtime environment and permissions.

  1. Download the main network program don_v1.x.x_xxxx_devnet and place it in a directory with read, write, and execute permissions.
  2. Add execute permission to the program.
chmod +x don_v1.x.x_xxxx_devnet
  1. Run the program. The -m parameter enables the menu. Press 0 to exit the current program.
./don_v1.x.x_xxxx_devnet -m
  1. Check the generated directories and files in the current directory.

run node

Document description​

File or directoryTypeDescription
certFolderStores generated private key files with the .private suffix.
data.dbFolderStores database files.
config.jsonJSON fileConfiguration file.
logsFolderStores log files.
contractsFolderContract related files.
Serial NumberMenu itemsFunction
1TransactionTransaction
2StakeStake
3UnstakeUnstake
4InvestInvest
5DisinvestDisinvest
6Get RewardsApply
7PrintAccountInfoPrint account
8Deploy contractDeploy smart contracts
9Call contractExecute smart contracts
10Account ManagerAccount related management
0ExitExit the program

1. Transaction​

Press 1 to enter the transaction interface.

Enter your account address.

tips
  1. The Base58 value is the account address.
  2. You can scroll up, find the green text, and copy the Base58 value.
  3. Do not use Ctrl+C and Ctrl+V for copying and pasting, because Ctrl+C exits 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.

  1. The compiled binary code of the contract is saved in the contract directory.
  2. 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.

  1. Set Default Account
  2. Add Account
  3. Remove
  4. Import SeedKey
  5. Export SeedKey

Press 0 to exit the system.