XDagger / xdag

XDAG (Dagger Coin) Official Main Repository. XDAG is a novel DAG based cryptocurrency.
https://xdag.io
MIT License
327 stars 130 forks source link

Add those RPC functions,thanks #195

Open ncgege opened 6 years ago

ncgege commented 6 years ago

XDAG RPC functions requirement: base functions: 1.set rpc user and passwrod 2.set up rpc allow ip. 3.set rpc listen port pool info 1.getpoolinfo(blcoks ,main blocks) 2.getpoolstate (pool state) 3.get peerinfo (net conn) 4.block notify (when a new block foud notfy some one)

  1. rpc log (set some level ) exchange 1.get newaddress 2.get balance 3.getBalanceByAddress 4.list transactions N (list last transactions) 5.getblocks (block hash ,txid ,wallet address) safty 1.import privkey /dump privkey
  2. change password 3.walletLock,walletPassphrase
xrdavies commented 6 years ago

@ncgege exchange 1.get newaddress 2.get balance 3.getBalanceByAddress 4.list transactions N (list last transactions) 5.getblocks (block hash ,txid ,wallet address)

pool info 2.getpoolstate (pool state)

Above requirements are implemented on feature/json_rpc branch.

3.set rpc listen port

rpc port can be set when launch instance.

ncgege commented 6 years ago

great ,thank you.