Bitcoin Forum
June 18, 2024, 08:50:04 AM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Create raw transaction by account name  (Read 235 times)
bgc17482 (OP)
Newbie
*
Offline Offline

Activity: 20
Merit: 0


View Profile
August 03, 2017, 09:38:23 AM
 #1

After I have done a transaction with create raw transaction, why are send operations done with my default address? Why not with account name?

https://bitcoin.stackexchange.com/questions/57514/why-can-not-we-see-the-send-operations-with-the-listtransaction-command

DannyHamilton
Legendary
*
Offline Offline

Activity: 3430
Merit: 4668



View Profile
August 03, 2017, 01:54:58 PM
 #2

Clicking on your link, it appears you are using and asking about a litecoin wallet.  This should be in the altcoin sub-forum, not Technical Support.

That being said, the "createrawtransaction" does not work with accounts.  It does not have an option for you to specify which account you are spending from.  Therefore, all transactions sent that way are assigned to the default account.

If you want a spend to be debited from a specific account, then you can use "move" after sending your raw transaction, or you can use "sendfrom" or "sendmany".

Note that the account functionality is deprecated in bitcoin and will be going away in the future.  You should stop using it and implement your own accounting system outside of the bitcoin client if you need to manage accounts.

bgc17482 (OP)
Newbie
*
Offline Offline

Activity: 20
Merit: 0


View Profile
August 04, 2017, 07:47:53 AM
 #3

Thank you very much for your reply.

What we want to do is to create a custom TXID for the users' own addresses and do the operations at their own address. We do not manage transaction fees when using sendfrom.

Where did you get the information to be deprecated at Bitcoin in the future?

We are waiting for your help, thank you.
DannyHamilton
Legendary
*
Offline Offline

Activity: 3430
Merit: 4668



View Profile
August 04, 2017, 01:14:15 PM
 #4

If you are unwilling to manage accounts outside the bitcoin client, then you will need to use the "move" command after you use the sendrawtransaction command.
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!