Bitcoin Forum
November 09, 2024, 06:45:11 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Sending bitcoin with bitcoind  (Read 464 times)
lesh11 (OP)
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile
June 08, 2016, 04:07:16 PM
 #1

With the current high value of bitcoin, I decided to sell the 1.01xxx BTC I have mined.
I set up an account on coinbase, verified my bank account (several days), then I sent a small transfer from my bitcoin wallet on my personal linux server to coinbase.

The correct amount was deducted from my wallet, but the transaction has still not shown up in coinbase.  In addition, blockchain.info still shows this as unconfirmed some 24 hours later.

I could be just expecting the transaction to complete too soon.

What is very confusing to me is the information reported on blockchain.info.

I sent 0.01640838 BTC to 16hkMKhmazo4udY1tvWjeTXVhvkPKkwF7T

but blockchain shows two destinations:
1GCmz6QVdHGRUL4Rk7EgPvRVRoic3rxekN 0.01000748 BTC
16hkMKhmazo4udY1tvWjeTXVhvkPKkwF7T 0.01640838 BTC

Is this normal?

Thanks all.
Les
CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1086


Ian Knowles - CIYAM Lead Developer


View Profile WWW
June 08, 2016, 04:09:07 PM
 #2

It is very normal to have two outputs - one being the amount you are sending to another party and the other being "change" being sent back to your wallet (to normally a new address).

Perhaps you need to do some learning about Bitcoin basics?

(one of the main reasons that a Bitcoin "wallet" is called that is because of the nature of "change" much like when you are paying for 10 and pull out a 20 to then get a 10 back)

If not confirmed after 24 hours then I suspect you did not pay a large enough fee (or perhaps the coins "immature" as you mentioned that they were mined).

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

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
lesh11 (OP)
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile
June 08, 2016, 04:20:22 PM
 #3

CIYAM,
thank you for the response.  These coins were mined over a year ago, so they should be mature.

Can you please explain the fee to me.
I used the command:
bitcoind sendtoaddress address amount

bitcoind responded with a transaction ID, which I used to look up the transaction on blockchain.info.

Where does the fee come from?  Will the transaction eventually complete if I didn't send a fee?  How much is the fee.

Thanks again.

Les
CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1086


Ian Knowles - CIYAM Lead Developer


View Profile WWW
June 08, 2016, 04:25:09 PM
 #4

Is your version of bitcoind also over 1 year old?

This might explain why the fee might be too small (an old version of bitcoind is likely to underestimate the required fee).

Note that if your tx has insufficient fee then you are either going to wait until it matures (that could be a long time) or you are going to have to stop bitcoind and remove the tx from your wallet (you'll need to take a look at the -zapwallettxes start up option).

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

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
lesh11 (OP)
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile
June 08, 2016, 04:29:13 PM
 #5

I am sure it is over a year old.
Bitcoin Core Daemon version v0.9.3.0-g40d2041-beta


Here is the get transaction report.  It shows 0 fee.

les@maybel:/bitcoin$ bitcoind gettransaction a5d4ed2342b6305f6d4c94f35445125342a67b5b39194f4d898e8a39ec9cee2a
{
    "amount" : -0.01640838,
    "fee" : 0.00000000,
    "confirmations" : 0,
    "txid" : "a5d4ed2342b6305f6d4c94f35445125342a67b5b39194f4d898e8a39ec9cee2a",
    "walletconflicts" : [
    ],
    "time" : 1465312308,
    "timereceived" : 1465312308,
    "details" : [
        {
            "account" : "",
            "address" : "16hkMKhmazo4udY1tvWjeTXVhvkPKkwF7T",
            "category" : "send",
            "amount" : -0.01640838,
            "fee" : 0.00000000
        }
    ],
    "hex" : "01000000022d4011a5a49db636c5ab5561cfd2481164e32f30c2d5e45e4b17b84a778deba11b000 0006a47304402206011c66f30ea86008eed0eef7c0c2f524f6ecb60d90b7a73023399fb6017c786 022065411b6670bc0f8f92461c5a152e53a8cfc89914f523adaccd2e3ea40ad5da95012103fb036 b03dd6dfeb3ec240f71b6345596c4f378daef9f2928f800e0549c8834abffffffff5ddbb46ab849 0fb4e137ffbf6173790b6c5d979c4a618de250c949f217580330200000006a4730440220100dcc8 b6a5505125b931145bb60377b05ea93a7835fcd6961d049d1e64cb875022019af8988bcd7b21125 417fac0079d7b89d98f48eb855fe27ad22058713479b46012103fb036b03dd6dfeb3ec240f71b63 45596c4f378daef9f2928f800e0549c8834abffffffff022c450f00000000001976a914a6c4036d c172612493d5e8910ec0b906a2df385688ac86091900000000001976a9143e8d74583d1d91873ad 5f19924e69f1de3ae8fff88ac00000000"
}
CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1086


Ian Knowles - CIYAM Lead Developer


View Profile WWW
June 08, 2016, 04:32:15 PM
 #6

Okay - I see your tx here: https://blockchain.info/tx/a5d4ed2342b6305f6d4c94f35445125342a67b5b39194f4d898e8a39ec9cee2a

Looks as though it should get confirmed soon enough so perhaps just be patient.

Hmm... hang on - "walletconflicts" doesn't look right (don't think I've noticed that in my own txs before).

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

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
lesh11 (OP)
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile
June 08, 2016, 04:47:07 PM
 #7

I see that there is a settxfee command.  How would I determine the fee for the next time I send BTC?
CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1086


Ian Knowles - CIYAM Lead Developer


View Profile WWW
June 08, 2016, 04:51:25 PM
Last edit: June 08, 2016, 05:09:37 PM by CIYAM
 #8

This might be of help: https://en.bitcoin.it/wiki/Transaction_fees

(and newer versions of bitcoind support an "estimatefee" command)

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

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
BillyBobZorton
Legendary
*
Offline Offline

Activity: 1204
Merit: 1028


View Profile
June 08, 2016, 05:08:36 PM
 #9

I would be scared to use bitcoind to be honest. Cvars in general scare me but when it comes to bitcoin is way way worse, you can fuck up and send an huge fee or some sort of mistake like that so stay safe.
CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1086


Ian Knowles - CIYAM Lead Developer


View Profile WWW
June 08, 2016, 05:10:18 PM
 #10

The big mistakes made with huge fees were when using "raw transactions" (which the OP is not doing).

That being said @OP do be careful to check you have set things correctly before attempting another tx.

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

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
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!