Code Monkey home page Code Monkey logo

tron_demo's Introduction

tron_demo

Tron 对FullNode Api 测试并封装

地址操作

AddressConverTest: hex或base58地址,互相转换和验证

创建账户

AccountTest: 创建账户-->签名-->广播(broadcasttransaction)

资源

ResourceTest : 创建资源交易-->签名-->广播(broadcasttransaction)

资源测试

HighFrequencyQuery: 高频查询带宽

HighFrequencyTransfer: 高频快捷转账

ps: 两个类的main函数执行,观察带宽消耗情况

离线签名

TransactionSignDemo: 创建交易-->签名-->广播(broadcasthex)

普通转账

TransferTest: 创建交易-->签名-->广播(broadcasttransaction)

错误信息解析

ErrorMessageTest: 执行节点API时,返回了结果,如果内部包含了message,解析message字段得到真正报错的原因....

注意: 以上类中,执行main方法,请更换IP地址 更换项目中的lib目录下的wallet-cli.jar,自己去https://github.com/tronprotocol/wallet-cli,修改配置文件,并且重新编译打包,然后将jar包,更换掉

tron_demo's People

Contributors

qiangqiang666 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.