文档
https://cn.developers.tron.network/docs/what-is-tron
https://tronprotocol.github.io/documentation-ZH
https://github.com/tronprotocol/documentation/tree/master/%E4%B8%AD%E6%96%87%E6%96%87%E6%A1%A3
波场费用模型:https://github.com/tronprotocol/Documentation/blob/35f92f981b9e95af68f5d737399748a70668d123/%E4%B8%AD%E6%96%87%E6%96%87%E6%A1%A3/%E6%B3%A2%E5%9C%BA%E5%8D%8F%E8%AE%AE/%E6%B3%A2%E5%9C%BA%E8%B4%B9%E7%94%A8%E6%A8%A1%E5%9E%8B.md
有自动化部署脚本:
https://github.com/tronprotocol/TronDeployment
文档:
https://github.com/tronprotocol/Documentation
需要提前设置如下:
设置目录权限:
$ sudo chown -R centos:centos /app/java-tron
设置环境变量GRADLE_USER_HOME,不然系统盘会被很快占满:
$ sudo vi /etc/profile
BUILD SUCCESSFUL in 18m 33s
23 actionable tasks: 23 executed
FullNode killed
starting FullNode
启动命令 : nohup java -jar FullNode.jar -c test_net_config.conf >> start.log 2>&1 &
======同步数据======
# 从这里下载最新的账本数据 https://backups.trongrid.io/
$ wget -b https://backups.trongrid.io/FullNode-latest-output-directory.tgz
$ mkdir -p /data/tron/FullNode/downloaddatabase
$ tar -xzvf FullNode-latest-output-directory.tgz -C /data/tron/FullNode/downloaddatabase
$ mv /data/tron/FullNode/downloaddatabase/output-directory/ /data/tron/FullNode/
# 下一条命令可以存为 start.sh
$ nohup java -jar /data/tron/FullNode/FullNode.jar -c /data/tron/FullNode/main_net_config.conf 2>&1 &
======停止脚本======
停止脚本,参考文档:https://tronprotocol.github.io/documentation-ZH/Tron-deployment/
#!/bin/bash
while true; do
pid=`ps -ef |grep full.jar |grep -v grep |awk '{print $2}'`
if [ -n "$pid" ]; then
kill -15 $pid
echo "The java-tron process is exiting, it may take some time, forcing the exit may cause damage to the database, please wait patiently..."
sleep 1
else
echo "java-tron killed successfully!"
break
fi
done
======通过官方管理端进行配置======
项目地址:
https://github.com/TRON-US/tron-cli
$ sudo apt-get install python3-pip
$ pip install troncli
$ tron-cli i
#使用上面的停止脚本进行停止
#启动命令如下
$ tron-cli run --nodetype full
http://wiki.tron.network/en/latest/TRON_Client.html#wallet-cli
修改配置文件中的节点IP和端口:src/main/resources/config.conf
$/home/centos/tron_cli/wallet-cli/gradlew run
$RegisterWallet
$Dk8_sinreos
05:58:33.097 INFO [main] [Client](Client.java:129) Register a wallet successful, keystore file name is UTC--2018-10-11T05-58-29.302000000Z--27RHrqWiMx7qX73m5nYWPzNkm17r2it6y3g.json
======测试网络======
The blockchain explorer of the mainnet is https://tronscan.org.
The blockchain explorer of the testnet is https://api.trongrid.io/
测试网络可以从这里直接测试 https://www.trongrid.io/
$ curl -X POST -k https://api.trongrid.io/wallet/generateaddress
{"privateKey":"1b3d72853bee1f216940ad26d3f06f5d6807cb8848138cdb9750c4d18393f4b1","address":"TW8TzUCR3ozuQP8Z4g9WUnc5YSdXBTnxs1","hexAddress":"41dd22c5b036a39e8b6453aab140a147f7305570db"}
$ curl -X POST -k https://api.trongrid.io/wallet/generateaddress
{"privateKey":"10a01001663097fdc9f40372a47f157b369965783bb39384f3fb36b256ce2629","address":"TDGBqjD1FNDBFmbqehHYr2oTNqiGw1UoWL","hexAddress":"41241e7acabcfc5c524f20b0a4ba73041fe949f349"}
======POST请求nodejs======
https://www.cnblogs.com/zhou195/p/8708762.html
======接口封装======
NodeJS版本接口封装:
https://github.com/tronprotocol/tron-demo/tree/master/demo/nodejs
Java版本接口封装:
https://github.com/tronprotocol/wallet-cli/blob/master/src/main/java/org/tron/demo/TransactionSignDemo.java
======TRC20======
相关描述TIP:https://github.com/tronprotocol/TIPs/blob/master/tip-20.md
======节点机器配置======
https://github.com/tronprotocol/Documentation/blob/master/TRX_CN/Tron-overview.md#3-%E8%8A%82%E7%82%B9%E8%BF%90%E8%A1%8C
Recommended hardware specifications
Minimum specifications for FullNode deployment
CPU:16-core
RAM:16G
Bandwidth:100M
DISK:10T
Recommended specifications for FullNode deployment
CPU:64-core or more
RAM:64G or more
Bandwidth:500M and more
DISK:20T or more
Minimum specifications for SolidityNode deployment
CPU:16-core
RAM:16G
Bandwidth:100M
DISK:10T
Recommended specifications for SolidityNode deployment
CPU:64-core or more
RAM:64G or more
Bandwidth:500M and more
DISK:20T or more
DISK capacity depends on the actual transaction volume after deployment, but it’s always better to leave some excess capacity.
======手动签名交易======
http://wiki.tron.network/en/latest/Technical_Overview_of_TRON.html
搜索章节:Sending TRX from an address
======网站生成的钱包信息======
FC49F10AF9EA3492886D6DA7183C8640FCA8F8547B8C0443C48BD351D040D527
s.._