aboutsummaryrefslogtreecommitdiff
path: root/src/rpcclient.cpp
Commit message (Collapse)AuthorAgeFilesLines
* move rpc* to rpc/Daniel Cousens2016-01-211-164/+0
|
* Bump copyright headers to 2015MarcoFalke2015-12-131-1/+1
|
* Expose RPC calls for estimatesmart functionsAlex Morcos2015-11-161-0/+2
| | | | Also add testing for estimatesmartfee in smartfees.py
* Merge pull request #5936Wladimir J. van der Laan2015-10-231-0/+1
|\ | | | | | | 212bcca Add optional locktime to createrawtransaction (Tom Harding)
| * Add optional locktime to createrawtransactionTom Harding2015-08-101-0/+1
| | | | | | | | | | A non-zero locktime also causes input sequences to be set to non-max, activating the locktime.
* | [Univalue] add univalue over subtreeJonas Schnelli2015-10-011-1/+1
| | | | | | | | similar to secp256k1 include and compile univalue over a subtree
* | Add importpubkey method to import a watch-only pubkeyMatt Corallo2015-07-201-0/+1
| |
* | Add p2sh option to importaddress to import redeemScriptsMatt Corallo2015-07-201-0/+1
|/
* Merge pull request #6247Wladimir J. van der Laan2015-07-021-0/+1
|\ | | | | | | 076badb Add getblockheader RPC call (Peter Todd)
| * Add getblockheader RPC callPeter Todd2015-06-051-0/+1
| | | | | | | | | | Alternative to getblock that works even when the block itself has been pruned, returning all available information.
* | Merge pull request #6088Wladimir J. van der Laan2015-06-231-0/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | 2085895 fundrawtransaction tests (Jonas Schnelli) 21bbd92 Add fundrawtransaction RPC method (Matt Corallo) 1e0d1a2 Add FundTransaction method to wallet (Matt Corallo) 2d84e22 Small tweaks to CCoinControl for fundrawtransaction (Matt Corallo) 9b4e7d9 Add DummySignatureCreator which just creates zeroed sigs (Pieter Wuille)
| * | Add fundrawtransaction RPC methodMatt Corallo2015-06-111-0/+1
| |/
* | setban: rewrite to UniValue, allow absolute bantimeJonas Schnelli2015-06-171-0/+1
| |
* | [RPC] add setban/listbanned/clearbanned RPC commandsJonas Schnelli2015-06-171-0/+1
|/
* Simplify RPCclient, adapt json_parse_error testWladimir J. van der Laan2015-06-041-20/+16
| | | | | # Conflicts: # src/test/rpc_tests.cpp
* Remove JSON Spirit wrapper, remove JSON Spirit leftoversJonas Schnelli2015-06-041-2/+2
| | | | | | - implement find_value() function for UniValue - replace all Array/Value/Object types with UniValues, remove JSON Spirit to UniValue wrapper - remove JSON Spirit sources
* remove JSON Spirit UniValue wrapperJonas Schnelli2015-06-041-1/+1
|
* univalue: add support for real, fix percision and make it json_spirit compatibleJonas Schnelli2015-06-041-2/+3
| | | | - avoid breaking the API because of different number/percision handling
* special threatment for null,true,false because they are non valid jsonJonas Schnelli2015-06-041-2/+14
|
* extend conversion to UniValueJonas Schnelli2015-06-041-1/+1
|
* Convert tree to using univalue. Eliminate all json_spirit uses.Jeff Garzik2015-06-041-1/+1
|
* Merge pull request #6022Wladimir J. van der Laan2015-04-301-1/+0
|\ | | | | | | b74dcb3 Separate CTranslationInterface from CClientUIInterface (Jorge Timón)
| * Separate CTranslationInterface from CClientUIInterfaceJorge Timón2015-04-161-1/+0
| |
* | Add RPC call to generate and verify merkle blocksMatt Corallo2015-04-231-0/+1
|/
* Introduce separate 'generate' RPC callPieter Wuille2015-04-011-0/+1
|
* Subtract fee from amountCozz Lovan2015-03-131-0/+2
| | | | | | | | Fixes #2724 and #1570. Adds the automatically-subtract-the-fee-from-the-amount-and-send-whats-left feature to the GUI and RPC (sendtoaddress,sendmany).
* Added "Core" to copyright headerssandakersmann2014-12-191-1/+1
| | | | | Github-Pull: #5494 Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
* Update comments in src/rpc* to be doxygen compatibleMichael Ford2014-11-201-5/+5
|
* regression test only setmocktime RPC callGavin Andresen2014-11-171-0/+1
|
* Merge pull request #4863Wladimir J. van der Laan2014-09-171-0/+1
|\ | | | | | | | | 1a61396 fix missing gettransaction entries in rpcclient (Benedict Chan) 57e1716 update rpc help message for gettransaction to add includeWatchonly param (Benedict Chan)
| * fix missing gettransaction entries in rpcclientBenedict Chan2014-09-161-0/+1
| |
* | remove include of chainparams.himharrywu2014-09-161-1/+0
|/ | | chainparams.h has not been used in this cpp file already, consider to remove it for clean.
* header include cleanupPhilip Kaufmann2014-09-141-1/+1
| | | | - ensures alphabetical ordering for includes etc. in source file headers
* Add helptexts for -whitelist and rpc prioritisetransaction and switch to ↵Cozz Lovan2014-07-151-0/+2
| | | | bitcoin instead of satoshis
* added includedWatchonly argument to listreceivedbyaddress/...accountJaSK2014-07-021-1/+2
|
* added includeWatchonly argument to 'gettransaction' because it affects ↵JaSK2014-07-021-0/+1
| | | | balance calculation
* Added argument to listtransactions and listsinceblock to include watchonly ↵JaSK2014-07-021-1/+2
| | | | addresses
* Added argument to listaccounts to include watchonly addressesJaSK2014-07-021-0/+1
|
* Added argument to getbalance to include watchonly addresses and fixed errors ↵JaSK2014-07-021-0/+1
| | | | in balance calculation.
* Add support for watch-only addressesPieter Wuille2014-07-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | Changes: * Add Add/Have WatchOnly methods to CKeyStore, and implementations in CBasicKeyStore. * Add similar methods to CWallet, and support entries for it in CWalletDB. * Make IsMine in script/wallet return a new enum 'isminetype', rather than a boolean. This allows distinguishing between spendable and unspendable coins. * Add a field fSpendable to COutput (GetAvailableCoins' return type). * Mark watchonly coins in listunspent as 'watchonly': true. * Add 'watchonly' to validateaddress, suppressing script/pubkey/... in this case. Based on a patch by Eric Lombrozo. Conflicts: src/qt/walletmodel.cpp src/rpcserver.cpp src/wallet.cpp
* RPC client: Simplify command line string-to-JSON-value conversion codeJeff Garzik2014-06-261-79/+104
| | | | | | | | | | | | | By default, all command line parameters are converted into JSON string values. There is no need to manually specify the incoming type. A binary decision "parse as string or JSON?" is all that's necessary. Convert to a simple class, initialized at runtime startup, which offers a quick lookup to answer "parse as JSON?" conversion question. Future parameter conversions need only to indicate the method name and zero-based index of the parameter needing JSON parsing.
* JSON-RPC method: prioritisetransaction <txid> <priority delta> <priority tx fee>Luke Dashjr2014-06-261-0/+2
| | | | Accepts the transaction into mined blocks at a higher (or lower) priority
* Remove cli functionality from bitcoindWladimir J. van der Laan2014-06-151-175/+0
| | | | | | | | | | | | As it says on the tin. It was deprecated in version 0.9, and at some point it should be removed. Removes the dependency of bitcoind on libbitcoin-cli.a. Move some functions that used to be shared but are now only used in bitcoin-cli.cpp to that file. After this change, an error is printed (and exit code 1 is returned) when the user tries to send RPC commands using bitcoind.
* bitcoin-cli, rpcclient: prefer EXIT_FAILURE cstdlib constantJeff Garzik2014-06-151-1/+1
| | | | | | | A more complex construction via abs() yields the same end result. Rebased-From: 34ff109 Rebased-By: Wladimir J. van der Laan <[email protected]>
* estimatefee / estimatepriority RPC methodsGavin Andresen2014-06-061-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New RPC methods: return an estimate of the fee (or priority) a transaction needs to be likely to confirm in a given number of blocks. Mike Hearn created the first version of this method for estimating fees. It works as follows: For transactions that took 1 to N (I picked N=25) blocks to confirm, keep N buckets with at most 100 entries in each recording the fees-per-kilobyte paid by those transactions. (separate buckets are kept for transactions that confirmed because they are high-priority) The buckets are filled as blocks are found, and are saved/restored in a new fee_estiamtes.dat file in the data directory. A few variations on Mike's initial scheme: To estimate the fee needed for a transaction to confirm in X buckets, all of the samples in all of the buckets are used and a median of all of the data is used to make the estimate. For example, imagine 25 buckets each containing the full 100 entries. Those 2,500 samples are sorted, and the estimate of the fee needed to confirm in the very next block is the 50'th-highest-fee-entry in that sorted list; the estimate of the fee needed to confirm in the next two blocks is the 150'th-highest-fee-entry, etc. That algorithm has the nice property that estimates of how much fee you need to pay to get confirmed in block N will always be greater than or equal to the estimate for block N+1. It would clearly be wrong to say "pay 11 uBTC and you'll get confirmed in 3 blocks, but pay 12 uBTC and it will take LONGER". A single block will not contribute more than 10 entries to any one bucket, so a single miner and a large block cannot overwhelm the estimates.
* switch from boost int types to <stdint.h>Kamil Domanski2014-05-131-26/+26
|
* improve command-line options outputCozz Lovan2014-03-251-2/+3
|
* Remove unused includes of boost lexical_castWladimir J. van der Laan2014-03-071-1/+0
| | | | We don't use lexical_cast anywhere, no need to include it.
* Replace PrintException with PrintExceptionContinue + throwWladimir J. van der Laan2014-02-261-1/+2
| | | | | | | | | Just a pet peeve. (PrintException has exactly the same body as PrintExceptionContinue but does a re-throw at the end. Move these re-throws to the call site, this aids understanding what is going on as well as eliminates a bit of code duplication in util.cpp)
* Fix bitcoin-cli exit status codeCozz Lovan2014-02-261-1/+1
|