On-chain rent machine
On-chain rent machine
Step 1: Determine the machine to be rented
- Open Mainnet Wallet 
- Create a wallet: Account-->Add account (The mnemonic phrase must be saved, if the mnemonic phrase is lost, the account cannot be retrieved, and the currency is lost) 
- Go to Galactic Race Machine List to find the corresponding type of idle machine 

Step 2: Rent a machine on the chain
- Navigate to - Developer---- Transactions---- rentMachine----- rentMachine(machine_id, duration)
- machine_id: Enter the id of the machine to be rented, the- 0xin the input box must be deleted first
- duration: Enter the time to be rented (unit: 1 BlockNumber = 6 seconds, the minimum rental time is 300 blocks. If it exceeds half an hour, it must be a multiple of 300 blocks. )
- After the input is complete, click Submit Transaction, and confirm whether the machine is available within 30 minutes. (If the lease is not confirmed within 30 minutes, the payment of - dbcwill be refunded, but the transaction fee of 10- dbccannot be refunded)
- For related operations such as creating a virtual machine, please reference 
Step 3: Confirm availability and lease
注意
Before confirming, you must confirm that the virtual machine can start normally. After confirming that the lease is successful, it means that the machine is successfully leased, and the DBC rent cannot be refunded
- Navigate to - Developer----- Transactions----- rentMachine----- confirmRent(machine_id)
- Enter the machine id and submit the transaction 
Step 4: Relet Machine Rent
注意
The virtual machine will be automatically stopped when the machine expires to ensure that the lease is renewed successfully before the lease expires
- Navigate to - Developer----- Transactions----- rentMachine----- reletMachine(machine_id, add_duration)
- Enter the machine id and the number of days to renew the lease, and submit the transaction 
