All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tech.coinbub.daemon.Poli Maven / Gradle / Ivy

There is a newer version: 1.0.3
Show newest version
package tech.coinbub.daemon;

import java.math.BigDecimal;
import tech.coinbub.daemon.poli.Block;
import tech.coinbub.daemon.poli.Transaction;

/*
 * `polid help` returns the following:
 *
 * addmultisigaddress  <'["key","key"]'> [account]
 * addnode  
 * addredeemscript  [account]
 * backupwallet 
 * checkkernel [{"txid":txid,"vout":n},...] [createblocktemplate=false]
 * checkwallet
 * createrawtransaction [{"txid":txid,"vout":n},...] {address:amount,...}
 * decoderawtransaction 
 * decodescript 
 * dumpprivkey 
 * dumpwallet 
 * encryptwallet 
 * getaccount 
 * getaccountaddress 
 * getaddednodeinfo  [node]
 * getaddressesbyaccount 
 * getbalance [account] [minconf=1]
 * getbestblockhash
 * getblock  [txinfo]
 * getblockbynumber  [txinfo]
 * getblockcount
 * getblockhash 
 * getblocktemplate [params]
 * getcheckpoint
 * getconnectioncount
 * getdifficulty
 * getinfo
 * getmininginfo
 * getnettotals
 * getnewaddress [account]
 * getnewpubkey [account]
 * getpeerinfo
 * getrawmempool
 * getrawtransaction  [verbose=0]
 * getreceivedbyaccount  [minconf=1]
 * getreceivedbyaddress  [minconf=1]
 * getstakesubsidy 
 * getstakinginfo
 * getsubsidy [nTarget]
 * gettransaction 
 * getwork [data]
 * getworkex [data, coinbase]
 * help [command]
 * importaddress 
[label] [rescan=true] * importprivkey [label] [rescan=true] * importwallet * keypoolrefill [new-size] * listaccounts [minconf=1] * listaddressgroupings * listreceivedbyaccount [minconf=1] [includeempty=false] * listreceivedbyaddress [minconf=1] [includeempty=false] * listsinceblock [blockhash] [target-confirmations] * listtransactions [account] [count=10] [from=0] * listunspent [minconf=1] [maxconf=9999999] ["address",...] * makekeypair [prefix] * move [minconf=1] [comment] * ping * repairwallet * resendtx * reservebalance [ [amount]] * sendalert [cancelupto] * sendfrom [minconf=1] [comment] [comment-to] * sendmany {address:amount,...} [minconf=1] [comment] * sendrawtransaction * sendtoaddress [comment] [comment-to] * setaccount * settxfee * signmessage * signrawtransaction [{"txid":txid,"vout":n,"scriptPubKey":hex,"redeemScript":hex},...] [,...] [sighashtype="ALL"] * stop * submitblock [optional-params-obj] * validateaddress * validatepubkey * verifymessage */ public interface Poli { public static final String SYMBOL = "POLI"; /** * `getnewaddress [account]` * * Returns a new NIKO address for receiving payments. If [account] is specified, it is added to the address book so * payments received with the address will be credited to [account]. */ String getnewaddress(); String getnewaddress(String label); String getnewaddress(String label, String address_type); /** * `getbestblockhash` * * Returns the hash of the best block in the longest block chain. */ String getbestblockhash(); /** * getblockhash * Returns hash of block in best-block-chain at . */ String getblockhash(Long index); /** * `getblock [txinfo]` * * Returns details of a block with given block-hash. * * txinfo optional to print more detailed tx info */ Block getblock(String hash); Block getblock(String hash, boolean txinfo); /** * `gettransaction ` * * Get detailed information about */ Transaction gettransaction(String txid); /** * `sendtoaddress [comment] [comment-to]` * * is a real and is rounded to the nearest 0.000001 */ String sendtoaddress(String address, BigDecimal amount); String sendtoaddress(String address, BigDecimal amount, String comment); String sendtoaddress(String address, BigDecimal amount, String comment, String commentTo); public enum NodeAction { add, remove, onetry } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy