Code Monkey home page Code Monkey logo

triones-node-tool's Introduction

triones-node-tool

Instruction

1.clone repo

git clone https://github.com/ontio/triones-node-tool.git

2.build or download latest release

bulid:

go build main.go

or download latest release:

https://github.com/ontio/triones-node-tool/releases

3.update config file

vim config.json

content of config.json:

{
  "JsonRpcAddress":"http://polaris1.ont.io:20336",
  "WalletPath": "wallet.dat",
  "PeerPublicKey": "02d500543eaa4110b8d5f8df4fabe31a8caabaa58cb8512baa8af15a303606efe4",
  "InitPos":10000,
  "GasPrice":500,
  "GasLimit":20000
}

JsonRpcAddress:rpc of ontology node,for polaris testnet: http://polaris1.ont.io:20336,http://polaris2.ont.io:20336,http://polaris3.ont.io:20336,http://polaris4.ont.io:20336,for mainnet: http://dappnode1.ont.io:20336,http://dappnode2.ont.io:20336,http://dappnode3.ont.io:20336,http://dappnode4.ont.io:20336。

WalletPath: path of wallet file, this wallet is deposit account

PeerPublicKey: public key of node's operation account

InitPos: init deposit

4.run command line

list of supported command line:

command line function
./main -t RegisterTriones register node to triones nodes, it will deposit value of InitPos from deposit account, charge 500 ONG as fee
./main -t QuitTriones quit triones, it will quit node from triones, candidate node will quit next epoch, consensus node will quit next next epoch
./main -t WithdrawInitPos withdraw InitPos, it can be called to withdraw InitPos after node quits successfully
./main -t WithdrawOng withdraw node benefits
./main -t GetTrionesInfo query node info, for status: 1 means candidate node, 2 means consensus node, 3 means quited consensus node, 4 means quited candidate node. TotalPos means total deposit from users.

And now you can run your command and input your password if needed.

triones-node-tool's People

Contributors

siovanus 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.