aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet_rpc_server.cpp (follow)
AgeCommit message (Collapse)AuthorFilesLines
2017-08-30Do not create file when RPC user/pass is given and use file lockingLee Clagett1-29/+20
2017-08-15Merge pull request #2286Riccardo Spagni1-11/+17
8655ba04 wallet_rpc_server: adjust small ring sizes to 5 for v6 (moneromooo-monero)
2017-08-15Merge pull request #2279Riccardo Spagni1-1/+6
359517c7 wallet_rpc_server: fix possible privacy leak in on_import_key_images() (Jaquee) 20495b27 simplewallet: fix possible privacy leak in import_key_images() (Jaquee)
2017-08-15Merge pull request #2205Riccardo Spagni1-0/+4
c97d1bd3 wallet: return unlock_time in get_transfers (moneromooo-monero)
2017-08-12wallet_rpc_server: adjust small ring sizes to 5 for v6moneromooo-monero1-11/+17
2017-08-11wallet_rpc_server: fix possible privacy leak in on_import_key_images()Jaquee1-1/+6
2017-08-07change mixin to ring size in user visible placesmoneromooo-monero1-2/+2
2017-08-07Merge pull request #2210Riccardo Spagni1-6/+49
cb0b5594 Move OpenAlias console input back from libs (moneromooo-monero)
2017-08-02wallet: return unlock_time in get_transfersmoneromooo-monero1-0/+4
also show it in simplewallet's show_transfer
2017-07-27Move OpenAlias console input back from libsmoneromooo-monero1-6/+49
Library code should definitely not ask for console input unless it's clearly an input function. Delegating the user interaction part to the caller means it can now be used by a GUI, or have a decision algorithm better adapted to a particular caller.
2017-07-26wallet_rpc_server: optionally return tx blobs on transfer callsmoneromooo-monero1-7/+38
also add do_not_relay flag to them, so it now becomes possible to create a tx without sending it yet
2017-07-03Merge pull request #2125Riccardo Spagni1-2/+2
f98bf48b Minor cleanup: tab vs. space + logs messages (binaryFate)
2017-07-03Merge pull request #2121Riccardo Spagni1-0/+7
5a09d79c Fix #2120: return per-tx amount in transfer_split RPC call. (binaryFate)
2017-06-26Minor cleanup: tab vs. space + logs messagesbinaryFate1-3/+3
2017-06-26Fix #2120: return per-tx amount in transfer_split RPC call.binaryFate1-0/+7
2017-06-23Fix on_transfer RPC incorrect logging infoMike C1-1/+1
2017-04-24wallet: add sweep_below functionmoneromooo-monero1-1/+1
It sweeps all outputs below the given threshold This is available via the existing sweep_all RPC, by setting amount_threshold the desired amount (in atomic units)
2017-04-11Resolve #92 add ability to create wallets thru RPCHoward Chu1-94/+326
Reviewed and squashed. Open/Create is only allowed if no walletfile was specified at startup.
2017-03-20wallet rpc: enable solo miningstoffu1-0/+51
2017-03-19wallet-rpc bugfix: get_transfer_by_txid previously checking against payment idkenshi841-1/+1
2017-03-18Merge pull request #1884Riccardo Spagni1-0/+28
e9175cec wallet_rpc_server: make a few RPCs unavailable in restricted mode (moneromooo-monero)
2017-03-18Merge pull request #1883Riccardo Spagni1-8/+8
d0238313 use const references in catch blocks (moneromooo-monero)
2017-03-18Merge pull request #1882Riccardo Spagni1-0/+22
3fa59755 wallet2: call is_key_image_spent in blocks in rescan_spent (moneromooo-monero) 9d134e86 wallet_rpc_server: add a rescan_spent RPC (moneromooo-monero)
2017-03-18wallet_rpc_server: make a few RPCs unavailable in restricted modemoneromooo-monero1-0/+28
Address book modification, setting tx nodes, importing key images
2017-03-18use const references in catch blocksmoneromooo-monero1-8/+8
2017-03-18wallet_rpc_server: add a rescan_spent RPCmoneromooo-monero1-0/+22
2017-03-17wallet-rpc: enable openaliasstoffu1-3/+3
2017-02-28wallet: fix --log-file not workingmoneromooo-monero1-0/+1
2017-02-24wallet_rpc_server: new --trusted-daemon flagmoneromooo-monero1-5/+16
and remove trusted_daemon fields from transfer RPCs, it is much friendlier on users
2017-02-21update copyright year, fix occasional lack of newline at line endRiccardo Spagni1-1/+1
2017-02-14simplewallet: validate hex input sizemoneromooo-monero1-4/+4
2017-02-11Merge pull request #1689Riccardo Spagni1-62/+25
ce7fcbb4 Add server auth to monerod, and client auth to wallet-cli and wallet-rpc (Lee Clagett)
2017-02-08extract some basic code from libcryptonote_core into libcryptonote_basickenshi841-2/+2
2017-02-06Add server auth to monerod, and client auth to wallet-cli and wallet-rpcLee Clagett1-62/+25
2017-02-04wallet_rpc_server: add address book RPC callsmoneromooo-monero1-0/+98
2017-02-02Merge pull request #1643Riccardo Spagni1-4/+2
69d2ad39 wallet_rpc_server: fix logs going to the wrong file (moneromooo-monero)
2017-01-29wallet_rpc_server: fix short payment id validation in transfermoneromooo-monero1-1/+1
2017-01-28wallet_rpc_server: fix logs going to the wrong filemoneromooo-monero1-4/+2
2017-01-16wallet2: reuse fake outs when adjusting fee on transfermoneromooo-monero1-0/+5
This avoids indirectly leaking the real output to the daemon, and is faster. This will still happen for more complex cases, especially when cancelling a tx and "re-rolling" it.
2017-01-16Change logging to easylogging++moneromooo-monero1-5/+9
This replaces the epee and data_loggers logging systems with a single one, and also adds filename:line and explicit severity levels. Categories may be defined, and logging severity set by category (or set of categories). epee style 0-4 log level maps to a sensible severity configuration. Log files now also rotate when reaching 100 MB. To select which logs to output, use the MONERO_LOGS environment variable, with a comma separated list of categories (globs are supported), with their requested severity level after a colon. If a log matches more than one such setting, the last one in the configuration string applies. A few examples: This one is (mostly) silent, only outputting fatal errors: MONERO_LOGS=*:FATAL This one is very verbose: MONERO_LOGS=*:TRACE This one is totally silent (logwise): MONERO_LOGS="" This one outputs all errors and warnings, except for the "verify" category, which prints just fatal errors (the verify category is used for logs about incoming transactions and blocks, and it is expected that some/many will fail to verify, hence we don't want the spam): MONERO_LOGS=*:WARNING,verify:FATAL Log levels are, in decreasing order of priority: FATAL, ERROR, WARNING, INFO, DEBUG, TRACE Subcategories may be added using prefixes and globs. This example will output net.p2p logs at the TRACE level, but all other net* logs only at INFO: MONERO_LOGS=*:ERROR,net*:INFO,net.p2p:TRACE Logs which are intended for the user (which Monero was using a lot through epee, but really isn't a nice way to go things) should use the "global" category. There are a few helper macros for using this category, eg: MGINFO("this shows up by default") or MGINFO_RED("this is red"), to try to keep a similar look and feel for now. Existing epee log macros still exist, and map to the new log levels, but since they're used as a "user facing" UI element as much as a logging system, they often don't map well to log severities (ie, a log level 0 log may be an error, or may be something we want the user to see, such as an important info). In those cases, I tried to use the new macros. In other cases, I left the existing macros in. When modifying logs, it is probably best to switch to the new macros with explicit levels. The --log-level options and set_log commands now also accept category settings, in addition to the epee style log levels.
2017-01-11Added (not yet enabled) HTTP client authenticationLee Clagett1-1/+1
2017-01-08wallet_rpc_server: new RPC call to get a transfer by txidmoneromooo-monero1-61/+152
2016-12-19Refactored password prompting for walletsLee Clagett1-3/+3
2016-12-16Enabled HTTP auth support for monero-wallet-rpcLee Clagett1-7/+91
2016-12-05Added confirmation before binding wallet-rpc to external IPLee Clagett1-11/+30
2016-12-04Merge pull request #1398Riccardo Spagni1-1/+1
f4772bae Fix a few minor typos (Pierre Boyer)
2016-12-04Fix a few minor typosPierre Boyer1-1/+1
2016-11-28wallet: add API and RPC to create/parse monero: URIsmoneromooo-monero1-0/+27
2016-11-16wallet: return fee in transfer RPCmoneromooo-monero1-0/+4
2016-11-10Created monero-wallet-rpc, moving functionality from monero-wallet-cliLee Clagett1-10/+117
2016-09-18epee: optionally restrict HTTP service to a configurable user agentmoneromooo-monero1-1/+4
This is intended to catch traffic coming from a web browser, so we avoid issues with a web page sending a transfer RPC to the wallet. Requiring a particular user agent can act as a simple password scheme, while we wait for 0MQ and proper authentication to be merged.
2016-09-16wallet: change priority/fee to ArticMine's recommendationmoneromooo-monero1-3/+3
We keep 1, 2, 3 multipliers till the fee decrase from 0.01/kB to 0.002/kB, where we start using 1, 20, 166 multipliers. This ensures the higher multiplier will compensate for the block reward penalty when pushing past 100% of the past median. The fee-multiplier wallet setting is now rename to priority, since it keeps its [0..3] range, but maps to different multiplier values.
2016-08-29wallet_rpc_server: return payment id in make_integrated_address RPCmoneromooo-monero1-0/+1
It is useful, especially when requesting a random one
2016-08-28rct amount key modified as per luigi1111's recommendationsmoneromooo-monero1-31/+0
This allows the key to be not the same for two outputs sent to the same address (eg, if you pay yourself, and also get change back). Also remove the key amounts lists and return parameters since we don't actually generate random ones, so we don't need to save them as we can recalculate them when needed if we have the correct keys.
2016-08-28wallet: do not store signatures in the wallet cachemoneromooo-monero1-1/+1
Saves some substantial space. Also avoid calculating tx hashes we don't need.
2016-08-28wallet: always use new algorithm for RPC transfersmoneromooo-monero1-5/+2
This ensures we get rct transactions when appropriate
2016-08-28wallet: do not try to use rct txes a few blocks before the forkmoneromooo-monero1-2/+2
2016-08-28port get_tx_key/check_tx_key to rctmoneromooo-monero1-0/+39
2016-08-28add rct to the protocolmoneromooo-monero1-4/+2
It is not yet constrained to a fork, so don't use on the real network or you'll be orphaned or rejected.
2016-07-24wallet: new {ex,im}port_key_images commands and RPC callsmoneromooo-monero1-0/+66
They are used to export a signed set of key images from a wallet with a private spend key, so an auditor with the matching view key may see which of those are spent, and which are not.
2016-07-20wallet: add unconfirmed incoming txes from the txpoolmoneromooo-monero1-2/+25
Shown in show_transfers simplewallet command, and get_transfers RPC command, if req.pool is true.
2016-07-20Merge pull request #899Riccardo Spagni1-1/+8
a95a2cb wallet_rpc_server: add payment id from integrated addresses to extra (moneromooo-monero)
2016-07-19wallet: add command and RPC to sign/verify datamoneromooo-monero1-0/+36
Signing is done using the spend key, since the view key may be shared. This could be extended later, to let the user choose which key (even a per tx key). simplewallet's sign/verify API uses a file. The RPC uses a string (simplewallet can't easily do strings since commands receive a tokenized set of arguments).
2016-07-10wallet_rpc_server: add payment id from integrated addresses to extramoneromooo-monero1-1/+8
2016-06-22wallet: add a fee multipliermoneromooo-monero1-4/+4
Fee can now be multiplied by 2 or 3, if users want to give priority to their transactions. There are only three levels to avoid too much fingerprinting. Default is 1 (minimum fee). The default multiplier can be set by "set fee-multiplier X".
2016-06-19wallet_rpc_server: fix some string values being returned between <>moneromooo-monero1-10/+10
2016-04-27wallet: add a filter_by_height field to get_transfersmoneromooo-monero1-2/+9
It allows a simple get_transfers (with default 0 min_height and max_height) to return all transactions, instead of the unexpected set of txes in block 0, which is probably none at all.
2016-04-26wallet: add get_transfers rpc callmoneromooo-monero1-0/+89
Allows getting in, out, pending, and failed transfers, similarly to the show_transfers command.
2016-04-26wallet: allow attaching notes to txidsmoneromooo-monero1-0/+63
2016-04-19wallet: add a new sweep_all command and RPC commandmoneromooo-monero1-0/+59
This sends all outputs in a wallet to a given address, alleviating the difficulty people have had trying to send all monero but being left with some small amount left.
2016-04-02wallet: better output selection for transfer/transfer_newmoneromooo-monero1-3/+3
This now requests the set of outputs that can be mixed first, to avoid trying non dust but unmixable outputs, which we know will fail.
2016-03-26wallet: do not leak owned amounts to the daemon unless --trusted-daemonmoneromooo-monero1-1/+1
This will be slower, though more private. New trusted_daemon parameter to the matching RPC call, false by default.
2016-03-26wallet: change sweep_dust to sweep_unmixablemoneromooo-monero1-1/+1
With the change in mixin rules for v2, the "annoying" outputs are slightly changed. There is high correlation between dust and unmixable, but no equivalence.
2016-03-11wallet: use minimum mixin when RPC asks for too low mixinmoneromooo-monero1-3/+13
After the fork, normal transfer functions called via RPC use the minimum mixin 2 if 0 or 1 is requested. While the incoming transaction may be valid (eg, it has an unmixable and at most a mixable input), it is a simple way to make sure RPC users can't get a seemingly random accept/reject behavior if they don't update their requested mixin.
2016-03-05get_payments short IDluigi11111-8/+17
Add support for short/integrated/encrypted IDs to get_payments RPC
2015-12-31updated copyright yearRiccardo Spagni1-1/+1
2015-12-30wallet: add a rescan_bc command and rescan_blockchain RPCmoneromooo-monero1-0/+23
Blockchain hashes and key images are flushed, and blocks are pulled anew from the daemon. The console command is shortened to match bc_height. This should make it a lot easier on users who are currently told to remove this particular cache file but keep the keys one, etc, etc.
2015-12-28wallet_rpc_server: exit async, so we reply to stop_wallet RPCmoneromooo-monero1-1/+10
Reported by saddam
2015-12-28wallet: do not return error if incoming_transfers finds nonemoneromooo-monero1-5/+0
reported by saddam
2015-12-23added RPC wallet command getheightBrendan Telzrow1-1/+16
2015-12-05wallet: add a stop_wallet RPC callmoneromooo-monero1-0/+23
2015-08-26wallet: use mutex protected random generation apimoneromooo-monero1-1/+1
2015-08-24wallet: only return tx keys via RPC if requestedmoneromooo-monero1-3/+6
To get the tx keys returned via RPC, set the "get_tx_key" or "get_tx_keys" request field to true (defaults to false).
2015-08-19make tx keys available to the usermoneromooo-monero1-0/+3
They are also stored in the cache file, to be retrieved using a new get_tx_key command.
2015-08-09encrypted payment ids are now 64 bit, instead of 256 bitmoneromooo-monero1-22/+36
Pros: - smaller on the blockchain - shorter integrated addresses Cons: - less sparseness - less ability to embed actual information The boolean argument to encrypt payment ids is now gone from the RPC calls, since the decision is made based on the length of the payment id passed.
2015-08-09Encrypted payment IDsmoneromooo-monero1-4/+7
A payment ID may be encrypted using the tx secret key and the receiver's public view key. The receiver can decrypt it with the tx public key and the receiver's secret view key. Using integrated addresses now cause the payment IDs to be encrypted. Payment IDs used manually are not encrypted by default, but can be encrypted using the new 'encrypt_payment_id' field in the transfer and transfer_split RPC calls. It is not possible to use an encrypted payment ID by specifying a manual simplewallet transfer/transfer_new command, though this is just a limitation due to input parsing.
2015-07-22wallet: new transaction construction algorithmmoneromooo-monero1-1/+5
It should avoid a lot of the issues sending more than half the wallet's contents due to change. Actual output selection is still random. Changing this would improve the matching of transaction amounts to output sizes, but may have non obvious effects on blockchain analysis. Mapped to the new transfer_new command in simplewallet, and transfer uses the existing algorithm. To use in RPC, add "new_algorithm: true" in the transfer_split JSON command. It is not used in the transfer command.
2015-06-13Add RPC commands to manipulate integrated addressesmoneromooo-monero1-0/+64
2015-06-12Integrated addresses (standard address plus payment id)moneromooo-monero1-2/+16
2015-05-30wallet_rpc_server: add a sweep_dust RPC command as wellmoneromooo-monero1-0/+44
2015-03-27Restore daemon interactive modeThomas Winget1-9/+9
Daemon interactive mode is now working again. RPC mapped calls in daemon and wallet have both had connection_context removed as an argument as that argument was not being used anywhere.
2015-02-20added tx size to incoming_transfers RPC CallRiccardo Spagni1-0/+2
2015-01-15Merge pull request #215Riccardo Spagni1-0/+28
24d500c Add a --restricted-rpc flag to simplewallet (moneromooo-monero)
2015-01-11Add a --restricted-rpc flag to simplewalletmoneromooo-monero1-0/+28
It restricts RPC to a subset of "view only" commands. Kind of like a poor man's view key replacement.
2015-01-11Allow get_bulk_payments to return all payments regardless of payment IDmoneromooo-monero1-0/+20
by giving an empty list of payment IDs.
2015-01-02year updated in licenseRiccardo Spagni1-1/+1
2014-11-01Exception handling while refreshing in rpc wallet (credits to QCN)Sammy Libre1-1/+5
2014-09-15Separate testnet address prefixZachary Michaels1-2/+2
2014-08-05added view_key to wallet RPC command query_keyJakob Lind1-0/+4
2014-08-05query_key command in wallet rpc.Jakob Lind1-0/+18
only support mnemonic as key_type currently
2014-07-23Merge pull request #70 from fluffypony/masterRiccardo Spagni1-4/+29
New readme, license changes
2014-07-23wallet rpc: actually populate the extra while assembling a transactionErik Kimmo1-1/+1
2014-07-23License updated to BSD 3-clausefluffypony1-4/+29
2014-07-22Add get_bulk_payments rpc callZachary Michaels1-1/+47
2014-06-30wallet RPC converted to use new transaction semanticsThomas Winget1-11/+83
wallet RPC now uses wallet2::create_transactions and wallet2::commit_tx instead of wallet2::transfer. This made it possible to add the RPC call /transfer_split, which will split transactions automatically if they are too large. The old call to /transfer will return an error stating to use /transfer_split if multiple transactions are needed to fulfill the request.
2014-06-30final changes to get transaction splitting building. needs testing.Thomas Winget1-1/+2
2014-06-02fixed conflictpaybee1-1/+43
2014-06-02Added incoming_transfers RPC API methodpaybee1-14/+1
2014-06-02Added 'payment_id' optional argument to 'transfer' wallet RPC methodNeozaru1-1/+28
2014-05-27Added incoming_transfers RPC API methodpaybee1-0/+64
2014-05-25'getaddress' wallet-rpc commandNeozaru1-0/+15
2014-05-03initial [broken] updatemydesktop1-6/+43
2014-04-02json rpc for wallet and bugfixAntonio Juarez1-0/+132