4 Star 45 Fork 28

神经猫 / tron-rpc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

波场钱包代理

  1. 采用GPRC协议调用超级节点服务
  2. 使用golang开发,目前满足trx、trc10和trc20转账以及交易记录扫描,归集,地址生成功能
  3. 每一种合约开启json-rpc端口兼容比特币rpc接口
  4. 钱包私钥全部加密保存,密钥保存在sqlite数据库,所以必须定期备份
  5. 启动配置文件为当前目录下tron.toml文件,具体示例请查看文件参数

注:clone之后需更新子模块
git submodule update --init --recursive
为了安全,需要自己配置主钱包地址,加密私钥等相关参数

合约发布

文档,中文文档已经无法查看,需要管理员登录,请直接查看英文文档 https://developers.tron.network/docs/creating-and-compiling

change log

生成相关配置

# 主私钥
go test -timeout 30s -run ^TestCreatAddress$ tron/trx -v
# === RUN   TestCreatAddress
#     client_test.go:xx: 9f974ecb-839c-483f-9f36-f0e730b51658
#     client_test.go:xx: TL4kyKaXJ9gThBhHtyMSN4ZMKSaD5cZUGL
#     client_test.go:xx: PxfYdiHPZ6SloTlLBTEKmCHbB/YDOtD44KWIm7eZELKhjOu335WTq/eethyym3ks2KW2ZUGLGJbmOOcOMBaBianlmpg2SUbhih9Yk1HKWgk=
# --- PASS: TestCreatAddress (0.00s)
# PASS
# ok      tron/trx        0.093s

# db 文件生成
go test -timeout 30s -run ^TestDB$ tron/trx -v
# === RUN   TestDB
# --- PASS: TestDB (0.06s)
# PASS
# ok      tron/trx        0.180s
MIT License Copyright (c) 2022 神经猫 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.

简介

波场钱包rpc代理 展开 收起
Go 等 3 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Go
1
https://gitee.com/smirkcat/tron-rpc.git
git@gitee.com:smirkcat/tron-rpc.git
smirkcat
tron-rpc
tron-rpc
main

搜索帮助