Start a Machine

Use the cd command to navigate to the directory where the machine.js script is saved. (It will be inside the machine folder of the cloned directory). Repository for the provider and the machine is the same. If you were at the previous step then the command will be like:

cd ../machine/

Give Permission to Run the Script:

chmod +x start-machine.sh

Run Machine Script:

Note: Replace <WALLET_ADDRESS> , <PRIVATE_KEY> & <MACHINE_ID> with your specific values

<WALLET ADDRESS> is the EVM address of the provider wallet. <PRIVATE_KEY> is the private key of the above wallet. <MACHINE_ID> is the id of the machine, that you get while adding the machine.

Replace all of the above in the following command and run it:

./start-machine.sh <WALLET_ADDRESS> <PRIVATE_KEY> <MACHINE_ID>

Example:

./start-machine.sh 0xF89860E37131c564F39862Aa42DD7c9Ed213198b 0x7f25c1f6658fd0b86d9d7a62736a7983c78ab3d0e45909947bb32dd1f1ff0778 1001

See Logs:

Run the following command to check the status:

pm2 status

Run the following command to check the logs:

pm2 logs 0

Last updated