monero/tests/functional_tests
jeffro256 51d7a6921c
wallet: feature: transfer amount with fee included
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.
2024-02-20 17:08:42 -06:00
..
CMakeLists.txt wallet2: fix rescanning tx via scan_tx 2023-03-13 12:57:43 -07:00
address_book.py Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
bans.py Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
blockchain.py Fee changes from ArticMine 2022-04-10 18:13:34 +00:00
check_missing_rpc_methods.py tests: fix missing error on missing python entry point 2020-05-27 13:11:01 +00:00
cold_signing.py wallet2: better test on whether to allow output import 2022-09-07 06:22:31 +00:00
cpu_power_test.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
daemon_info.py Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
functional_tests_rpc.py wallet2: check wallet compatibility with daemon's hard fork version 2022-09-12 21:23:08 -06:00
get_output_distribution.py Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
integrated_address.py tests: integrated_address: remove missing payment id assertion 2022-04-06 06:49:01 -05:00
main.cpp Bump ring size to 16 for v15 & remove set default in wallet cli 2022-04-18 14:36:28 -07:00
make_test_signature.cc Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
mining.py core_rpc_server: return ID of submitted block 2023-06-30 15:32:49 -05:00
multisig.py functional_tests: fix multisig tests noutputs assertion 2023-08-19 22:21:36 -05:00
p2p.py Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
proofs.py Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
rpc_payment.py Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
sign_message.py Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
speed.py Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
transactions_flow_test.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
transactions_flow_test.h Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
transactions_generation_from_blockchain.cpp Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
transactions_generation_from_blockchain.h Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
transfer.py wallet: feature: transfer amount with fee included 2024-02-20 17:08:42 -06:00
txpool.py Publish submitted txs via zmq 2022-07-21 11:53:31 -07:00
uri.py Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
util_resources.py Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
validate_address.py Copyright: Update to 2022 2022-03-04 06:59:20 +01:00
wallet.py Copyright: Update to 2022 2022-03-04 06:59:20 +01:00