SendMany RPC missing parameter subtractFeeFromAmount #6500

issue ChainQuery opened this issue on July 31, 2015
  1. ChainQuery commented at 7:21 PM on July 31, 2015: none

    In bitrpc.py beginning on line 251, SendMany is missing the subtractFeeFromAmount parameter (parameter 5)

    The code:

    elif cmd == "sendmany":
        try:
            frm = raw_input("From: ")
            to = raw_input("To (in format address1:amount1,address2:amount2,...): ")
            mc = raw_input("Minimum confirmations (optional): ")
            comment = raw_input("Comment (optional): ")
            try:
                print access.sendmany(frm,to,mc,comment)
            except:
                print access.sendmany(frm,to)
        except Exception as inst:
            print inst
    

    Whats missing:

    5 subtractfeefromamount   (string, optional) A json array with addresses.
                               The fee will be equally deducted from the amount of each selected address.
                               Those recipients will receive less bitcoins than you enter in their corresponding amount field.
                               If no addresses are specified here, the sender pays the fee.
        [
          "address"            (string) Subtract fee from this address
          ,...
        ]
    

    Related: #6499

  2. ChainQuery commented at 4:57 AM on August 1, 2015: none

    The sendtoaddress RPC has the same issue, the 5th parameter subtractfeefromamount is missing.

    From bitrpc.py (line 264):

     elif cmd == "sendtoaddress":
        try:
            to = raw_input("To (in format address1:amount1,address2:amount2,...): ")
            amt = raw_input("Amount:")
            comment = raw_input("Comment (optional): ")
            commentto = raw_input("Comment-to (optional): ")
            try:
                print access.sendtoaddress(to,amt,comment,commentto)
            except:
                print access.sendtoaddress(to,amt)
        except Exception as inst:
            print inst
    

    From bitcoin "help sendtoaddress":

    Arguments:
    1. "bitcoinaddress" (string, required) The bitcoin address to send to.
    2. "amount" (numeric, required) The amount in btc to send. eg 0.1
    3. "comment" (string, optional) A comment used to store what the transaction is for. 
    This is not part of the transaction, just kept in your wallet.
    4. "comment-to" (string, optional) A comment to store the name of the person or organization 
    to which you're sending the transaction. This is not part of the 
    transaction, just kept in your wallet.
    5. subtractfeefromamount (boolean, optional, default=false) The fee will be deducted from the amount being sent.
    The recipient will receive less bitcoins than you enter in the amount field.
    
  3. MarcoFalke commented at 6:00 PM on August 14, 2015: member

    As the affected file was removed in #6507, this issue can be closed.

  4. ChainQuery commented at 3:36 PM on August 20, 2015: none

    Thanks.

  5. ChainQuery closed this on Aug 20, 2015

  6. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 21:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me