Tron tutorial to create addresses with PHP

Let’s create a tron address

You need basic knowledge of how to code with PHP (or know someone who can), you can also learn it at Codecademy.

1. Create a account (if you don’t have one already).

2. Install the PHP 7 modules JSON and CURL. If you are on a Linux Debian/Ubuntu machine, you can use the following commands:

apt-get install php7-curl
apt-get install php7-json

Depending on your machine and PHP version, you might try the following instead:

apt-get install php-curl

apt-get install php-json

Now restart Apache with:

service apache2 restart

3. Now download the file named createaddress.php

4. Replace YOURAPIKEY in the above code with the API Key in your Account panel.

5. Upload the created PHP script to your web server

6. Call the script in your browser. For example, if you upload it to the root directory of your website, you can call it by typing

8. After a few seconds, the script will return a tron address and a private key. Please safe the private key to be able to send transactions from it.

9. Now send at least 0.1 Tron to the new created address to activate it. This is required by the Tron blockchain.

10. If you want to send transactions, you can move to the next tutorial: Send transactions with PHP

11. Congratulations! You just created an tron address at Chaingateway, which you can use to send and receive Tron.