
Virtual coin payment callback monitoring synchronization code TRX TRC20 wavefield wallet PHP development example source code
PHP version, including offline generated wallet address, offline transfer, TRX transfer, TRC20 transfer, wallet collection
Source code description:
Wavefield php version wallet example, including offline wallet generation and activation, TRX and TRC20 transfer, offline signature, account collection, recharge transfer monitoring, development using fastadmin, with sql files, and use workerman and think-queue for transfer monitoring.
Note that this is not a complete payment source code, or a fourth-party payment system source code. The picture below is a screenshot of this source code, so don't download it if you have no skills. In order to prevent blind self-movement like me as much as possible, I put the picture behind the device below so that I won't accuse me of deceiving others later.
It was just integrated into an open source structure Bootstrap. In fact, I didn't understand it. At that time, I saw that there was no need to create nodes by yourself. You could just equip network node links in this code. Give it to those who need it. The following is the original introduction to this source code.
The code expects you to know at least some basic concepts of blockchain, such as address, public key, private key, contract, etc. If you are not clear, don't go down!!!
All test code is encapsulated in application common logic.php.
Transfer and transaction monitoring are imported in application push controller Worker. php.
Address balance monitoring does not perform block synchronization. It only needs to record the block of the last transaction at each address monitored. The next monitoring time, start from the block finally queried, and keep on going.
Interface test You can check how to call it in applicationapicontroller Address.php. Please pay attention to directory case in the coding environment in win+php7.4Linux
Collection and monitoring imports use workerman imports. In the server.php in the root directory, the collection method uses think-queue columns php think queue:work {column name} If you don't, you can check the official documents. They are the most basic application methods.
The structure is based on the fastadmin of thinkphp5, and the device is the device method of tp5. You can create a site, equip it with pseudo-static, import the database, and visit the address controller in the api module. The comments in the controller are also very clear.
Back-end address: /PWcRgnIzQK. php/ index / login
This is the FastAdmin backend, so what should I do if the password forgets the FastAdmin backend password?
Database fixes two fields of the fa_admin table
Password: c13f62012 fd6a 8 fdf06 b3452a94430e5
Code salt: rpR6Bv
The login password is 123456
Comments0