summaryrefslogtreecommitdiff
path: root/src/wallet/wallet_rpc_server.cpp
Commit message (Collapse)AuthorAgeFilesLines
* epee: optionally restrict HTTP service to a configurable user agentmoneromooo-monero2016-09-181-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.
* wallet: change priority/fee to ArticMine's recommendationmoneromooo-monero2016-09-161-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.
* wallet_rpc_server: return payment id in make_integrated_address RPCmoneromooo-monero2016-08-291-0/+1
| | | | It is useful, especially when requesting a random one
* rct amount key modified as per luigi1111's recommendationsmoneromooo-monero2016-08-281-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.
* wallet: do not store signatures in the wallet cachemoneromooo-monero2016-08-281-1/+1
| | | | | Saves some substantial space. Also avoid calculating tx hashes we don't need.
* wallet: always use new algorithm for RPC transfersmoneromooo-monero2016-08-281-5/+2
| | | | This ensures we get rct transactions when appropriate
* wallet: do not try to use rct txes a few blocks before the forkmoneromooo-monero2016-08-281-2/+2
|
* port get_tx_key/check_tx_key to rctmoneromooo-monero2016-08-281-0/+39
|
* add rct to the protocolmoneromooo-monero2016-08-281-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.
* wallet: new {ex,im}port_key_images commands and RPC callsmoneromooo-monero2016-07-241-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.
* wallet: add unconfirmed incoming txes from the txpoolmoneromooo-monero2016-07-201-2/+25
| | | | | Shown in show_transfers simplewallet command, and get_transfers RPC command, if req.pool is true.
* Merge pull request #899Riccardo Spagni2016-07-201-1/+8
|\ | | | | | | a95a2cb wallet_rpc_server: add payment id from integrated addresses to extra (moneromooo-monero)
| * wallet_rpc_server: add payment id from integrated addresses to extramoneromooo-monero2016-07-101-1/+8
| |
* | wallet: add command and RPC to sign/verify datamoneromooo-monero2016-07-191-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).
* wallet: add a fee multipliermoneromooo-monero2016-06-221-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".
* wallet_rpc_server: fix some string values being returned between <>moneromooo-monero2016-06-191-10/+10
|
* wallet: add a filter_by_height field to get_transfersmoneromooo-monero2016-04-271-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.
* wallet: add get_transfers rpc callmoneromooo-monero2016-04-261-0/+89
| | | | | Allows getting in, out, pending, and failed transfers, similarly to the show_transfers command.
* wallet: allow attaching notes to txidsmoneromooo-monero2016-04-261-0/+63
|
* wallet: add a new sweep_all command and RPC commandmoneromooo-monero2016-04-191-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.
* wallet: better output selection for transfer/transfer_newmoneromooo-monero2016-04-021-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.
* wallet: do not leak owned amounts to the daemon unless --trusted-daemonmoneromooo-monero2016-03-261-1/+1
| | | | | | This will be slower, though more private. New trusted_daemon parameter to the matching RPC call, false by default.
* wallet: change sweep_dust to sweep_unmixablemoneromooo-monero2016-03-261-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.
* wallet: use minimum mixin when RPC asks for too low mixinmoneromooo-monero2016-03-111-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.
* get_payments short IDluigi11112016-03-051-8/+17
| | | | Add support for short/integrated/encrypted IDs to get_payments RPC
* updated copyright yearRiccardo Spagni2015-12-311-1/+1
|
* wallet: add a rescan_bc command and rescan_blockchain RPCmoneromooo-monero2015-12-301-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.
* wallet_rpc_server: exit async, so we reply to stop_wallet RPCmoneromooo-monero2015-12-281-1/+10
| | | | Reported by saddam
* wallet: do not return error if incoming_transfers finds nonemoneromooo-monero2015-12-281-5/+0
| | | | reported by saddam
* added RPC wallet command getheightBrendan Telzrow2015-12-231-1/+16
|
* wallet: add a stop_wallet RPC callmoneromooo-monero2015-12-051-0/+23
|
* wallet: use mutex protected random generation apimoneromooo-monero2015-08-261-1/+1
|
* wallet: only return tx keys via RPC if requestedmoneromooo-monero2015-08-241-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).
* make tx keys available to the usermoneromooo-monero2015-08-191-0/+3
| | | | | They are also stored in the cache file, to be retrieved using a new get_tx_key command.
* encrypted payment ids are now 64 bit, instead of 256 bitmoneromooo-monero2015-08-091-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.
* Encrypted payment IDsmoneromooo-monero2015-08-091-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.
* wallet: new transaction construction algorithmmoneromooo-monero2015-07-221-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.
* Add RPC commands to manipulate integrated addressesmoneromooo-monero2015-06-131-0/+64
|
* Integrated addresses (standard address plus payment id)moneromooo-monero2015-06-121-2/+16
|
* wallet_rpc_server: add a sweep_dust RPC command as wellmoneromooo-monero2015-05-301-0/+44
|
* Restore daemon interactive modeThomas Winget2015-03-271-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.
* added tx size to incoming_transfers RPC CallRiccardo Spagni2015-02-201-0/+2
|
* Merge pull request #215Riccardo Spagni2015-01-151-0/+28
|\ | | | | | | 24d500c Add a --restricted-rpc flag to simplewallet (moneromooo-monero)
| * Add a --restricted-rpc flag to simplewalletmoneromooo-monero2015-01-111-0/+28
| | | | | | | | | | It restricts RPC to a subset of "view only" commands. Kind of like a poor man's view key replacement.
* | Allow get_bulk_payments to return all payments regardless of payment IDmoneromooo-monero2015-01-111-0/+20
|/ | | | by giving an empty list of payment IDs.
* year updated in licenseRiccardo Spagni2015-01-021-1/+1
|
* Exception handling while refreshing in rpc wallet (credits to QCN)Sammy Libre2014-11-011-1/+5
|
* Separate testnet address prefixZachary Michaels2014-09-151-2/+2
|
* added view_key to wallet RPC command query_keyJakob Lind2014-08-051-0/+4
|
* query_key command in wallet rpc.Jakob Lind2014-08-051-0/+18
| | | only support mnemonic as key_type currently