Giter Club home page Giter Club logo

java-tron's Introduction

                     Build Status GitHub issues GitHub pull requests GitHub contributors license

What's TRON?

TRON is a block chain-based decentralized smart protocol and an application development platform. It allows each user to freely publish, store and own contents and data, and in the decentralized autonomous form, decides an incentive mechanism and enables application developers and content creators through digital asset distribution, circulation and transaction, thus forming a decentralized content entertainment ecosystem.

TRON is a product of Web 4.0 and the decentralized internet of next generation.

Quick Start

Download and build

> git clone https://github.com/tronprotocol/java-tron.git
> cd java-tron
> gradle build

Import project to IDEA

  • [File] -> [New] -> [Project from Existing Sources...]
  • Select java-tron/build.gradle
  • Dialog [Import Project from Gradle], confirm [Use auto-import] and [Use gradle wrapper task configuration] have been selected,then select Gradle JVM(JDK 1.8)and click [OK]

Testing

Install Kafka and create two topics (block and transaction)

Update the configuration

File path: <your workspace>/java-tron/src/main/resources/tron.conf

kafka {
    host = "127.0.0.1"  # your Kafka's host
    port = ":9092"      # your Kafka's port
}

Starting program

IDEA:

  • [Edit Configurations...] -> [Program arguments]: --type server
  • Run

run

Commands

help

Description Example
Help tips help

help

account

Description Example
Get address account

help

getbalance

Description Example
Get balance getbalance

help

send [to] [balance]

Description Example
Send balance to address send 2cddf5707aefefb199cb16430fb0f6220d460dfe 2

help

printblockchain

Description Example
Print blockchain printblockchain

help

exit

Description Example
Exit exit

help

Contribution

Contributions are welcomed and greatly appreciated. Please see CONTRIBUTING.md for details on submitting patches and the contribution workflow.

java-tron's People

Contributors

tronfoundation avatar sasaxie avatar lucien-tronlab avatar mu1one avatar khuezy avatar conglinduye avatar

Watchers

 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.