Bitcoin Forum

Bitcoin => Armory => Topic started by: JamesBold on August 27, 2018, 03:49:07 PM



Title: ArmoryD Send From Specific Bitcoin Address
Post by: JamesBold on August 27, 2018, 03:49:07 PM
How do I send BTC from specific bitcoin address using armoryd? i.e., coin control


Title: Re: ArmoryD Send From Specific Bitcoin Address
Post by: JamesBold on September 03, 2018, 12:53:26 PM
bump


Title: Re: ArmoryD Send From Specific Bitcoin Address
Post by: bob123 on September 04, 2018, 06:35:57 AM
You'll have to click on 'Coin Control' to get into the menu to select the UTXO when creating a transaction.


https://i.imgur.com/mT0J2kp.png


Title: Re: ArmoryD Send From Specific Bitcoin Address
Post by: JamesBold on September 04, 2018, 11:21:42 AM
THanks, but I'm trying to use ArmoryD, and write a script to do this, not through the Wallet Interface/GUI.

I think I figured out a way to modify the code to filter out the utxoList, for the specific address.


Title: Re: ArmoryD Send From Specific Bitcoin Address
Post by: goatpig on September 04, 2018, 11:26:47 AM
You can't do this natively. You have to grab the utxo set for your wallet from armoryd (https://github.com/goatpig/armoryd/blob/master/armoryd.py#L439), then craft the unspent tx locally, which you can then send to armoryd for signing and broadcasting.

To craft the unsigned tx, you can rip the Armory python code into your local script. The logic is contained in a single file, albeit meshed in with GUI calls:

https://github.com/goatpig/BitcoinArmory/blob/master/ui/TxFrames.py

Edit: indeed, you other option would be to modify armoryd to take in a list of eligible addresses to get utxos from.