aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet_rpc_server.h (follow)
AgeCommit message (Collapse)AuthorFilesLines
2024-02-20wallet: feature: transfer amount with fee includedjeffro2561-2/+2
To transfer ~5 XMR to an address such that your balance drops by exactly 5 XMR, provide a `subtractfeefrom` flag to the `transfer` command. For example: transfer 76bDHojqFYiFCCYYtzTveJ8oFtmpNp3X1TgV2oKP7rHmZyFK1RvyE4r8vsJzf7SyNohMnbKT9wbcD3XUTgsZLX8LU5JBCfm 5 subtractfeefrom=all If my walet balance was exactly 30 XMR before this transaction, it will be exactly 25 XMR afterwards and the destination address will receive slightly less than 5 XMR. You can manually select which destinations fund the transaction fee and which ones do not by providing the destination index. For example: transfer 75sr8AAr... 3 74M7W4eg... 4 7AbWqDZ6... 5 subtractfeefrom=0,2 This will drop your balance by exactly 12 XMR including fees and will spread the fee cost proportionally (3:5 ratio) over destinations with addresses `75sr8AAr...` and `7AbWqDZ6...`, respectively. Disclaimer: This feature was paid for by @LocalMonero.
2023-10-25epee: remove dead code in math_helper and string_toolsjeffro2561-1/+0
2023-01-16Copyright: Update to 2023mj-xmr1-1/+1
Co-authored-by: plowsof <plowsof@protonmail.com> extra files
2022-03-04Copyright: Update to 2022mj-xmr1-1/+1
2021-06-15provide key images of spent outputs in wallet rpcwoodser1-2/+2
2021-05-18support freeze, thaw, and frozen in wallet rpcwoodser1-0/+6
2021-03-01wallet_rpc: add scan_txtobtoht1-0/+2
2020-05-06Update copyright year to 2020SomaticFanatic1-1/+1
Update copyright year to 2020
2020-02-06Merge pull request #6102Alexander Blair1-1/+1
b328de6b wallet_rpc_server: add tx weight in transfer commands responses (moneromooo-monero)
2019-11-06wallet_rpc_server: new estimate_tx_size_and_weight RPCmoneromooo-monero1-0/+2
2019-11-05wallet_rpc_server: add tx weight in transfer commands responsesmoneromooo-monero1-1/+1
2019-09-17wallet: add edit_address_book RPCmoneromooo-monero1-0/+2
2019-04-16wallet_rpc_server: add set_log_level/set_log_categoriesmoneromooo-monero1-0/+4
2019-04-11Merge pull request #5374Riccardo Spagni1-0/+2
a2561653 wallet: new option to start background mining (moneromooo-monero)
2019-04-04wallet: new option to start background miningmoneromooo-monero1-0/+2
The setup-background-mining option can be used to select background mining when a wallet loads. The user will be asked the first time the wallet is created.
2019-04-01wallet_rpc_server: add a set_daemon RPCmoneromooo-monero1-0/+2
2019-04-01Merge pull request #5302Riccardo Spagni1-0/+4
23fb056a wallet_rpc_server: new auto_refresh RPC (moneromooo-monero)
2019-03-17Merge pull request #5165Riccardo Spagni1-0/+2
36451697 Simplify RPC endpoint, emoving second RPC endpoint generate_from_view_key (Joel) c17c8188 Remove code duplication (Joel) acb14c10 Add generate_from_view_key RPC method (Joel) 7dd7a3b7 Add generate_from_keys RPC method (Joel)
2019-03-17wallet_rpc_server: new auto_refresh RPCmoneromooo-monero1-0/+4
It can enable/disable auto refresh, and set auto refresh period
2019-03-05Update 2019 copyrightbinaryFate1-1/+1
2019-03-02Simplify RPC endpoint, emoving second RPC endpoint generate_from_view_keyJoel1-2/+0
2019-02-21Remove code duplicationJoel1-2/+2
2019-02-19Add generate_from_view_key RPC methodJoel1-0/+2
2019-02-19Add generate_from_keys RPC methodJoel1-0/+2
2019-02-14wallet_rpc_server: add a validate_address RPCmoneromooo-monero1-0/+2
2019-01-28rpc: fix internal daemon calls in restricted rpc getting partial datamoneromooo-monero1-77/+78
2018-10-29wallet-rpc: add on_restore_deterministic RPC call.Hasan Pekdemir1-0/+2
2018-10-26Merge pull request #4539Riccardo Spagni1-0/+2
977fc1bc wallet_rpc_server: add describe_transfer RPC (moneromooo-monero)
2018-10-12Remove epee header dependency on cryptonote_coremoneromooo-monero1-0/+1
2018-10-09wallet_rpc_server: add describe_transfer RPCmoneromooo-monero1-0/+2
for unsigned tx sets using a view only wallet
2018-10-01Arbitrary M/N multisig schemes:naughtyfox1-0/+2
* support in wallet2 * support in monero-wallet-cli * support in monero-wallet-rpc * support in wallet api * support in monero-gen-trusted-multisig * unit tests for multisig wallets creation
2018-09-05wallet rpc: Add close_wallet RPCGuillaume LE VAILLANT1-0/+2
And close the current wallet automatically if necessary when opening another wallet.
2018-09-04Merge pull request #4269luigi11111-0/+2
3d5abbe [#4027] add change_wallet_password wallet rpc command (artyomsol)
2018-08-23wallet: store trusted-daemon flag in wallet2stoffu1-1/+0
2018-08-22rpc-wallet: refresh command addedDusan Klinec1-0/+2
2018-08-17[#4027] add change_wallet_password wallet rpc commandartyomsol1-0/+2
2018-08-16wallet2: make --restricted-rpc available for wallet RPC onlystoffu1-0/+1
2018-07-31wallet-rpc: add get_address_index commandstoffu1-0/+2
2018-06-16Merge pull request #3780luigi11111-1/+9
9c2a7b4 wallet-rpc: watch-only and cold wallet features added (ph4r05)
2018-06-03wallet-rpc: watch-only and cold wallet features addedDusan Klinec1-1/+9
- unsigned_txset, signed_txset in transfer / submit_transfer / sign_transfer - export_outputs, import_outputs Squashed commits: [f4d9f3d4] wallet-rpc: do_not_relay removed from submit_transfer [5b16a86f] wallet-rpc: review-fix - method signature changes, renaming [b7fbb10a] wallet-rpc: naming fixes (unsigned vs signed), consts renamed [8c7d2727] wallet-rpc: sign_transfer added [481d024a] wallet2: sign_tx splitted to work with strings and structs, more granular [2a474db9] wallet-rpc: wallet2::load_unsigned_tx split to load from str, file [b1e3a018] wallet-rpc: review fix, load_tx_from_str variable rename [1f6373be] wallet-rpc: review fix: save_tx_to_{str,file} [2a08eafc] wallet-rpc: review comments fixes - redundant this removed from wallet2.cpp - load_tx_from_str, load_tx_from_file [43498052] wallet-rpc: submit_transfer added [9c45d1ad] wallet-rpc: watch_only check, return unsigned_txset [62831396] wallet2: added string variants to load_tx, save_tx - analogously to save_multisig_tx - required for monero-wallet-rpc to support watch-only wallet
2018-04-14wallet_rpc_server: add a get_version RPCmoneromooo-monero1-0/+2
2018-03-17wallet_rpc_server: add sweep_unmixable as alias for sweep_dustmoneromooo-monero1-0/+1
2018-03-15wallet2+cli+rpc: eliminate redundant m_http_client from cli/rpc and delegate ↵stoffu1-1/+0
calls to wallet2
2018-01-26Update 2018 copyrightxmr-eric1-1/+1
2018-01-25Merge pull request #3047Riccardo Spagni1-0/+3
fa5c0bab Implement #3045, fixing RPC snakecases (Nick Johnson)
2018-01-10Reserve proofstoffu1-0/+4
2018-01-06Implement #3045, fixing RPC snakecasesNick Johnson1-0/+3
2018-01-02Merge pull request #2967Riccardo Spagni1-0/+5
55556fab wallet_rpc_server: factor transfer info return and add missing info (moneromooo-monero)
2017-12-25Merge pull request #2926Riccardo Spagni1-0/+8
6b5bd129 Account tagging (stoffu)
2017-12-20wallet_rpc_server: factor transfer info return and add missing infomoneromooo-monero1-0/+5
Additional tx keys, amounts and fees were missing in some cases
2017-12-18check accessing an element past the end of a containermoneromooo-monero1-1/+1
2017-12-18Account taggingstoffu1-0/+8
2017-12-17wallet: add multisig sign/submit RPCmoneromooo-monero1-0/+5
2017-12-17N-1/N multisigmoneromooo-monero1-0/+1
2017-12-17multisig address generation RPCmoneromooo-monero1-0/+10
2017-11-25Merge pull request #2368Riccardo Spagni1-0/+4
b0b7e0f0 Spend proof without txkey (stoffu)
2017-11-24wallet_rpc_server: new relay_tx commandmoneromooo-monero1-0/+2
It takes a full tx+metadata hex string as input
2017-11-21Spend proof without txkeystoffu1-0/+4
2017-11-18Tx proof (revised):stoffu1-0/+8
- refactoring: proof generation/checking code was moved from simplewallet.cpp to wallet2.cpp - allow an arbitrary message to be signed together with txid - introduce two types (outbound & inbound) of tx proofs; with the same syntax, inbound is selected when <address> belongs to this wallet, outbound otherwise. see GitHub thread for more discussion - wallet RPC: added get_tx_key, check_tx_key, get_tx_proof, check_tx_proof - wallet API: moved WalletManagerImpl::checkPayment to Wallet::checkTxKey, added Wallet::getTxProof/checkTxProof - get_tx_key/check_tx_key: handle additional tx keys by concatenating them into a single string
2017-11-15simplewallet: wrong ns for input_line in sweep_single (fix #2634)stoffu1-1/+0
2017-11-15wallet: add sweep_single commandstoffu1-0/+2
2017-11-06track double spending in the txpoolmoneromooo-monero1-1/+1
Transactions in the txpool are marked when another transaction is seen double spending one or more of its inputs. This is then exposed wherever appropriate. Note that being marked with this "double spend seen" flag does NOT mean this transaction IS a double spend and will never be mined: it just means that the network has seen at least another transaction spending at least one of the same inputs, so care should be taken to wait for a few confirmations before acting upon that transaction (ie, mostly of use for merchants wanting to accept unconfirmed transactions).
2017-11-06Merge pull request #2605Riccardo Spagni1-0/+4
b370ef54 Wallet: Descriptions through new commands 'set_description', 'get_description' (rbrunner7)
2017-10-23Add more specific RPC error codesMichał Sałaban1-0/+1
2017-10-16Wallet: Descriptions through new commands 'set_description', 'get_description'rbrunner71-0/+4
2017-10-07Subaddresseskenshi841-1/+11
2017-08-30Do not create file when RPC user/pass is given and use file lockingLee Clagett1-1/+2
2017-08-12wallet_rpc_server: adjust small ring sizes to 5 for v6moneromooo-monero1-0/+1
2017-06-26Minor cleanup: tab vs. space + logs messagesbinaryFate1-1/+1
2017-04-11Resolve #92 add ability to create wallets thru RPCHoward Chu1-3/+15
Reviewed and squashed. Open/Create is only allowed if no walletfile was specified at startup.
2017-03-20wallet rpc: enable solo miningstoffu1-0/+5
2017-03-18wallet_rpc_server: add a rescan_spent RPCmoneromooo-monero1-0/+2
2017-02-24wallet_rpc_server: new --trusted-daemon flagmoneromooo-monero1-0/+1
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-04wallet_rpc_server: add address book RPC callsmoneromooo-monero1-0/+6
2017-01-16Change logging to easylogging++moneromooo-monero1-0/+4
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-08wallet_rpc_server: new RPC call to get a transfer by txidmoneromooo-monero1-0/+8
2016-12-20Merge pull request #1473Riccardo Spagni1-2/+0
e3639f5c Removed unused functions (Lee Clagett)
2016-12-19Removed unused functionsLee Clagett1-2/+0
2016-12-16Enabled HTTP auth support for monero-wallet-rpcLee Clagett1-0/+3
2016-12-05Added confirmation before binding wallet-rpc to external IPLee Clagett1-3/+0
2016-11-28wallet: add API and RPC to create/parse monero: URIsmoneromooo-monero1-0/+4
2016-11-10Created monero-wallet-rpc, moving functionality from monero-wallet-cliLee Clagett1-7/+2
2016-09-18epee: optionally restrict HTTP service to a configurable user agentmoneromooo-monero1-0/+2
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-07-24wallet: new {ex,im}port_key_images commands and RPC callsmoneromooo-monero1-0/+4
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-19wallet: add command and RPC to sign/verify datamoneromooo-monero1-0/+4
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-04-26wallet: add get_transfers rpc callmoneromooo-monero1-0/+2
Allows getting in, out, pending, and failed transfers, similarly to the show_transfers command.
2016-04-26wallet: allow attaching notes to txidsmoneromooo-monero1-0/+4
2016-04-19wallet: add a new sweep_all command and RPC commandmoneromooo-monero1-0/+2
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.
2015-12-31updated copyright yearRiccardo Spagni1-1/+1
2015-12-30wallet: add a rescan_bc command and rescan_blockchain RPCmoneromooo-monero1-0/+2
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-0/+1
Reported by saddam
2015-12-23added RPC wallet command getheightBrendan Telzrow1-0/+2
2015-12-05wallet: add a stop_wallet RPC callmoneromooo-monero1-0/+2
2015-06-13Add RPC commands to manipulate integrated addressesmoneromooo-monero1-0/+4
2015-05-30wallet_rpc_server: add a sweep_dust RPC command as wellmoneromooo-monero1-0/+2
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-01-02year updated in licenseRiccardo Spagni1-1/+1
2014-08-05query_key command in wallet rpc.Jakob Lind1-0/+4
only support mnemonic as key_type currently
2014-07-23Merge pull request #70 from fluffypony/masterRiccardo Spagni1-3/+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-3/+29
2014-07-22Add get_bulk_payments rpc callZachary Michaels1-0/+2
2014-06-30wallet RPC converted to use new transaction semanticsThomas Winget1-1/+4
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-02fixed conflictpaybee1-0/+2
2014-05-27Added incoming_transfers RPC API methodpaybee1-4/+6
2014-05-25'getaddress' wallet-rpc commandNeozaru1-0/+2
2014-05-03initial [broken] updatemydesktop1-4/+6
2014-04-02json rpc for wallet and bugfixAntonio Juarez1-0/+55