|
|
@ -412,6 +412,8 @@ class Commands: |
|
|
|
tx = self.wallet.make_unsigned_transaction(coins, final_outputs, self.config, fee, change_addr) |
|
|
|
if locktime != None: |
|
|
|
tx.locktime = locktime |
|
|
|
if rbf is None: |
|
|
|
rbf = self.config.get('use_rbf', True) |
|
|
|
if rbf: |
|
|
|
tx.set_rbf(True) |
|
|
|
if not unsigned: |
|
|
@ -420,7 +422,7 @@ class Commands: |
|
|
|
return tx |
|
|
|
|
|
|
|
@command('wp') |
|
|
|
def payto(self, destination, amount, fee=None, from_addr=None, change_addr=None, nocheck=False, unsigned=False, rbf=False, password=None, locktime=None): |
|
|
|
def payto(self, destination, amount, fee=None, from_addr=None, change_addr=None, nocheck=False, unsigned=False, rbf=None, password=None, locktime=None): |
|
|
|
"""Create a transaction. """ |
|
|
|
tx_fee = satoshis(fee) |
|
|
|
domain = from_addr.split(',') if from_addr else None |
|
|
@ -428,7 +430,7 @@ class Commands: |
|
|
|
return tx.as_dict() |
|
|
|
|
|
|
|
@command('wp') |
|
|
|
def paytomany(self, outputs, fee=None, from_addr=None, change_addr=None, nocheck=False, unsigned=False, rbf=False, password=None, locktime=None): |
|
|
|
def paytomany(self, outputs, fee=None, from_addr=None, change_addr=None, nocheck=False, unsigned=False, rbf=None, password=None, locktime=None): |
|
|
|
"""Create a multi-output transaction. """ |
|
|
|
tx_fee = satoshis(fee) |
|
|
|
domain = from_addr.split(',') if from_addr else None |
|
|
|