Binancecoin tutorial to subscribe BEP-20 token deposits of an 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 Chaingateway.io 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 your webserver.
3. Create a folder with a secure name on your web server. For example B5tN-KtfOTf37 (Please use something own).
4. Now download the file named
5. Upload the created PHP script to the created folder on your web server.
6. Create a file named
ipnlog.txtand upload it to the same folder and give the file write permissions. The script above will log all deposits and withdrawals to the ipnlog.txt file. You can process deposits and withdrawals the way you want of course (Example: Update user balances, Mark orders as paid, ...).
You can also send mails on every deposit (to you or your client). For this, we recommend using Elastic Email who offer a great API, tracking, reliability and pricing. By using this link you can save 50%.
7. Now download the file named
8. Replace YOURAPIKEY in the above code with the API Key in your Account panel.
9. Replace the other variables in the upper section of the code above with your data
10. Upload the created PHP script to your web server
11. 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 yourwebsite.com/createsubscription-bsc.php
12. After a few seconds, the script will return a status showing if the request was successful.
13. Congratulations! You just created an address subscription and will receive notifications on future deposits to the provided url.
14. If you want to create an Binancecoin address, which you can use to send Binancecoin or BEP-20 tokens from, check out this tutorial.