Special thanks to CryptoGuyin ZA and Jason Neely for the help getting this done.
I am pretty much a newbie to terminal so i included tips to solve problems I had. If you have never opened terminal on your mac before, hit command+spacebar and type terminal.
Before you start...
You must have Java8 JDK installed. More recent versions may cause errors.
Install Homebrew. It makes it easy to download the packages you may need. Use the tip in the side-bar to download it directly.
Install Java8 with the following commands:
(You may be prompted to enter your computer system password to install)
|brew tap caskroom/versions|
|brew cask install java8|
You may need to remove a more recent version of Java if you have 10 or 11 installed. Use the tip in the side-bar if need be.
Now You Can Begin...
I pulled the commands from these sources. You can refer to them as well:
*Note: one user had to use change the IP addresses in the config.config file to make it work. The walkthrough by Jason Neely has the addresses that worked for him.
Step 1: Get the Wallet Package from github
Paste the following command into your terminal:
|git clone https://github.com/tronprotocol/wallet-cli.git|
Step 2: Build and Run Your Wallet
You will need to change your directory by using the CD command. Enter the following commands:
Step 3: Import and Unfreeze
If everything worked, the program should get to 85%. That is your signal that the wallet-cli is ready for you to import your wallet. You can type “help” to see the list of commands. You will want to use:
You will be prompted to create a password. It will ask you to enter it again.
Then it will ask for your private key. Paste it in and press enter.
Now your wallet is imported, but you need to login to use it. Enter the following:
Enter the password you just created. You are now ready to unfreeze your TRX, but you will need the address of the wallet you allocated the bandwidth to. If i had allocated my bandwidth to this address TNNc1HGDUrRkowQxdcUaWyBodZXshuVtBp, I would then enter the following command:
Tips to help get started
It is helpful to have Homebrew installed on your mac or linux computer. To install it, open your terminal and paste the following:
To remove a previous version of
Java, First, run the following command in the terminal to determine which version of Java you are running:
Then navigate to the directory where you can delete the java version using the following:
now type ls (the list command) to see which versions are there. Then you can paste in the following command:
|sudo rm -rf jdk-10.0.1.jdk|
You may need to edit the numbers to match your version. I had to change mine to 11.0.2.
Editing the Config.config
You may need to edit the IP addresses in the config.config file. To do that, you will need to cd in to the proper directory:
Once there you can use sudo nano config.config to edit right there in the terminal.
Once you import your wallet, you just need to enter ./gradlew run and then login to access your wallet each subsequent time.