Download the PHP package jinfakeji168/tron-php without Composer
On this page you can find all versions of the php package jinfakeji168/tron-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download jinfakeji168/tron-php
More information about jinfakeji168/tron-php
Files in jinfakeji168/tron-php
Download jinfakeji168/tron-php
More information about jinfakeji168/tron-php
Files in jinfakeji168/tron-php
Vendor jinfakeji168
Package tron-php
Short Description Support TRON's TRX and TRC20, which include functions such as address creation, balance query, transaction transfer, query the latest blockchain, query information based on the blockchain, and query information based on the transaction hash
License MIT
Homepage https://github.com/ufado/tron-php
Package tron-php
Short Description Support TRON's TRX and TRC20, which include functions such as address creation, balance query, transaction transfer, query the latest blockchain, query information based on the blockchain, and query information based on the transaction hash
License MIT
Homepage https://github.com/ufado/tron-php
Please rate this library. Is it a good library?
Informations about the package tron-php
波场开发包 php版
概述
波场开发包目前支持波场的 TRX 和 TRC20 中生成地址,发起转账,离线签名,资源代理和收回,资源价格查询等功能。正在持续更新,将会支持更多的功能,已修复原版不少bug,将会持续维护。
特点
- 方法调用快捷方便
- 兼容 TRON 网络中 TRX 货币和 TRC 系列所有通证
- 支持最新的质押2.0中的资源代理和资源回收
- 支持实时获取质押获得的资源数量,例如质押1trx获得的能量
- 接口可灵活增减
- 速度迅速 算法经过专门优化
- 持续更新 始终跟进波场新功能
支持方法
- 生成地址
generateAddress()
- 验证地址
validateAddress(Address $address)
- 根据私钥得到地址
privateKeyToAddress(string $privateKeyHex)
- 查询余额
balance(Address $address)
- 交易转账(离线签名)
transfer(Address $from, Address $to, float $amount)
- 查询最新区块
blockNumber()
- 根据区块链查询信息
blockByNumber(int $blockID)
- 根据交易哈希查询信息
transactionReceipt(string $txHash)
- 资源代理
delegate(Address $from, Address $to, float $amount,string $resource = 'ENERGY', $lock=false,$lock_period=0)
- 资源收回
undelegate(Address $from,Address $to, float $amount,string $resource = 'ENERGY')
- 质押1trx获得的能量
getFrozenEnergyPrice(Address $my)
- 质押1trx获得的带宽
getFrozenNetPrice(Address $my)
快速开始
安装
接口调用
完整代码请查阅/examples下的文件
USDT.php
Trx.php
Delegate.php
感谢
开发者名称 | 描述 | 应用场景 |
---|---|---|
iexbase/tron-api | 波场官方文档推荐 PHP 扩展包 | 波场基础Api |
Fenguoz | 波场PHP 实现 | 波场基础Api |
ufado/tron-api | 基于iexbase的自行维护扩展包 | 波场基础Api |
联系
项目合作 项目开发 源码定制 请联系 Https://t.me/ufado_bot
All versions of tron-php with dependencies
PHP Build Version
Package Version
Requires
jinfakeji168/tron-api Version
^1.1
ionux/phactor Version 1.0.8
kornrunner/keccak Version ^1.0
ionux/phactor Version 1.0.8
kornrunner/keccak Version ^1.0
The package jinfakeji168/tron-php contains the following files
Loading the files please wait ....