tron trx php
1.0.0
PHP库通过Tron-Grid与TRON区块链互动
该图书馆旨在与Tron-Grid集成,同时消除其API的一些危险方面。目前最大的问题之一是将私钥通过网络发布到各种TRON节点,同时将节点配置留给开发人员。这会使中间攻击发生并窃取私钥的巨大潜力。即使有信任的开发人员知道如何设置其网络和身份验证层错误的情况确实会发生,事实是您的私钥可能是通过网络发布并被暴露。
简而言之。该库允许您使用无害的端点,例如/wallet/getaccountnet等。.诸如生成地址/私钥或签名之类的动作都在本地完成,而没有您的私钥会通过网络发布。
您的PHP安装需要启用BCMATH和GMP扩展。
composer require mattvb91/trontrx
有一个可用的Dockerfile,您可以用来构建工作图像以快速启动。
cd build
docker build -t tron-trx-php .
cd ../
docker run -it -v $( pwd ) :/app -u 1000 tron-trx-php /bin/bash
composer install
./vendor/bin/phpunit
我们使用SEMVER进行版本控制。有关可用的版本,请参见此存储库上的标签。
另请参阅参与该项目的贡献者列表。
MIT License
Copyright (c) 2018 Matthias von Bargen
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.