Bitcoin Forum
May 25, 2024, 07:29:24 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Help! how to send a specific address to others?  (Read 925 times)
namuyang (OP)
Newbie
*
Offline Offline

Activity: 22
Merit: 0


View Profile WWW
October 08, 2016, 04:25:31 AM
Last edit: October 08, 2016, 05:05:49 AM by namuyang
 #1

I want to send btc from a specific btcaddress to others. Smiley
I use bitcoind with Debian CUI.

i use php and want to apply altcoins,please show me good ways.


I read links
http://stackoverflow.com/questions/22837830/bitcoind-daemon-and-createrawtransaction-params
https://bitcointalk.org/index.php?topic=133769.0
DannyHamilton
Legendary
*
Offline Offline

Activity: 3402
Merit: 4656



View Profile
October 08, 2016, 05:41:35 AM
 #2

I want to send btc from a specific btcaddress to others. Smiley

It is not possible to spend bitcoins from addresses.  The transaction must specify the specific outputs that are being spent.

Now, since you know the outputs scripts of the unspent outputs that are available for you to spend, you can check each output and to find the scripts that are associated with the address you are interested in.  Then just choose those particular outputs to spend in your transaction.
namuyang (OP)
Newbie
*
Offline Offline

Activity: 22
Merit: 0


View Profile WWW
October 08, 2016, 11:13:01 AM
 #3

Thank you for a comment!

Quote
....you can check each output and to find the scripts....

Should I touch bitcoind scrypt? But I don't know C. Huh

Now I try to generate row transaction, but I don't understand TXid generation.
I TryTrytrytry.....
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3402
Merit: 6657


Just writing some code


View Profile WWW
October 08, 2016, 01:35:22 PM
 #4

Should I touch bitcoind scrypt? But I don't know C. Huh
Bitcoin scripts are not C or C++. They are an entirely different language specifically for Bitcoin scripts.

Now I try to generate row transaction, but I don't understand TXid generation.
I TryTrytrytry.....
The txid is generated from the transaction. You create the transaction and then hash it in order to get the txid.

With bitcoind, you can use the createrawtransaction rpc to create the raw transaction. Read the help for that command and it explains everything. Then you must sign that transaction using the signrawtransaction rpc and then you can send it with sendrawtransaction.

namuyang (OP)
Newbie
*
Offline Offline

Activity: 22
Merit: 0


View Profile WWW
October 09, 2016, 02:12:32 AM
 #5

Thank you for a comment!

Code:
createrawtransaction => signrawtransaction => sendrawtransaction

I understand ,thank you!
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!