Bitcoin Forum
November 09, 2024, 04:22:12 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Send bitcoins from selected addresses using bitcoin-qt  (Read 3262 times)
anti (OP)
Newbie
*
Offline Offline

Activity: 22
Merit: 0


View Profile
April 23, 2013, 05:27:45 PM
 #1

Hi!

I have several addresses in my bitcoin-qt wallet. Is it possible for me to select from which addresses I want to initiate a transfer from? I want coins only to be transferred from some of these addresses, but not all. How to do it?

Thanks!
Bitsky
Hero Member
*****
Offline Offline

Activity: 576
Merit: 514


View Profile
April 23, 2013, 08:44:40 PM
 #2

Not with the official client. Search the forum for coincontrol; it looks liike it could make it into the next release.
Some other clients already have this feature though.

Bounty: Earn up to 68.7 BTC
Like my post? Feel free to drop a tip to 1BitskyZbfR4irjyXDaGAM2wYKQknwX36Y
riX
Sr. Member
****
Offline Offline

Activity: 326
Merit: 254



View Profile
April 23, 2013, 10:30:33 PM
 #3

Yes, you can do it with bitcoin-qt, but not through the GUI.
Just create an unique label for the address you want to send from and run
Code:
bitcoind sendfrom <fromaccount> <tobitcoinaddress> <amount> [minconf=1] [comment] [comment-to]

Sorry, I can't help you with your lost password.

PGP key: 0x9F31802C79642F25
DannyHamilton
Legendary
*
Offline Offline

Activity: 3486
Merit: 4832



View Profile
April 24, 2013, 02:08:59 AM
 #4

Be aware that Bitcoin-Qt moves around the bitcoins every time you create a transaction (look into "change" addresses), so the bitcoins may not even be associated any longer with the addresses where you originally received them.
CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1086


Ian Knowles - CIYAM Lead Developer


View Profile WWW
April 24, 2013, 02:10:17 AM
 #5

Yes, you can do it with bitcoin-qt, but not through the GUI.
Just create an unique label for the address you want to send from and run
Code:
bitcoind sendfrom <fromaccount> <tobitcoinaddress> <amount> [minconf=1] [comment] [comment-to]

That will not do what you think at all (accounts are *not* addresses).

The only way currently for the OP to do what they want would be to use raw tx's (and I wouldn't recommend that unless you really are very sure about what you are doing).

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
grue
Legendary
*
Offline Offline

Activity: 2058
Merit: 1452



View Profile
April 24, 2013, 02:47:48 AM
 #6

Yes, you can do it with bitcoin-qt, but not through the GUI.
Just create an unique label for the address you want to send from and run
Code:
bitcoind sendfrom <fromaccount> <tobitcoinaddress> <amount> [minconf=1] [comment] [comment-to]
accounts system is in no way related to how addresses work. it's for bookeeping ONLY.

It is pitch black. You are likely to be eaten by a grue.

Adblock for annoying signature ads | Enhanced Merit UI
CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1086


Ian Knowles - CIYAM Lead Developer


View Profile WWW
April 24, 2013, 02:56:09 AM
 #7

it's for bookeeping ONLY.

And even for bookkeeping they are not very useful (as typical bookkeeping involves keeping track of individual account transactions which basically you can't do with Bitcoin).

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
riX
Sr. Member
****
Offline Offline

Activity: 326
Merit: 254



View Profile
April 25, 2013, 09:13:36 AM
 #8

Yes, you can do it with bitcoin-qt, but not through the GUI.
Just create an unique label for the address you want to send from and run
Code:
bitcoind sendfrom <fromaccount> <tobitcoinaddress> <amount> [minconf=1] [comment] [comment-to]

That will not do what you think at all (accounts are *not* addresses).

The only way currently for the OP to do what they want would be to use raw tx's (and I wouldn't recommend that unless you really are very sure about what you are doing).


Oh, sorry about that, I was wrong.
I had to read the source to believe you, accounts should really be explained better, and sendfromaccount isn't a very good name then.

For the OP: Ok, so the only way to do it with bitcoin-qt is to do something like this:
Run listunspent, choose the outputs you want as inputs, do createrawtransaction, signrawtransaction, sendrawtransaction. Make sure you don't forget about fee or change.
There are scripts that can do this for you.


Or just export the private keys and use something like brainwallet.org if it's a one time thing you need to do.

Sorry, I can't help you with your lost password.

PGP key: 0x9F31802C79642F25
pc
Sr. Member
****
Offline Offline

Activity: 253
Merit: 250


View Profile
April 25, 2013, 01:20:50 PM
 #9

Doing it with Bitcoin-Qt requires the raw API, as others have said. An example of using it in python is in the "contrib" directory and is actually pretty useful: https://github.com/bitcoin/bitcoin/tree/master/contrib/spendfrom
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!