Bitcoin Forum
June 30, 2024, 07:11:51 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoin-cli doesn't see transaction  (Read 460 times)
zoltanb (OP)
Member
**
Offline Offline

Activity: 162
Merit: 24


View Profile
September 05, 2017, 06:38:22 PM
Last edit: September 05, 2017, 07:02:25 PM by zoltanb
 #1

Hello,

I need some help with bitcoin-cli.

I just installed bitcoin-cli to a linux machine.
I used the below command to create a new receiving address:

bitcoin-cli getnewaddress "test"

I got this address:
[
  "1CJ8BaKhU6GiCe2DJG7vwR8LbKb5sQT4rB"
]

I went to another online wallet and sent 0.00002 BTC to the above address.

From here, it looks like this transaction is confirmed:
https://blockchain.info/tx/7d5e2c5816e120cb74dc4c2b521427b98ae2cebd46b96d68b36dcaa6c3e341a3

However, my bitcoin-cli does not see this balance:

bitcoin-cli listunspent 0 99999 "[\"1CJ8BaKhU6GiCe2DJG7vwR8LbKb5sQT4rB\"]"
[
]

bitcoin-cli getbalance "test"
0.00000000

What am I doing wrong?

Thank you.
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
September 05, 2017, 06:49:46 PM
 #2

Hello,

I need some help with bitcoin-cli.

I just installed bitcoin-cli to a linux machine.
I used the below command to create a new receiving address:

bitcoin-cli getnewaddress "test"

I got this address:
[
  "1CJ8BaKhU6GiCe2DJG7vwR8LbKb5sQT4rB"
]

I went to another online wallet and sent 0.00002 BTC to the above address.

From here, it looks like this transaction is confirmed:
https://blockchain.info/tx/7d5e2c5816e120cb74dc4c2b521427b98ae2cebd46b96d68b36dcaa6c3e341a3

However, my bitcoin-cli does not see this balance:

bitcoin-cli listunspent 0 99999 "[\"1CJ8BaKhU6GiCe2DJG7vwR8LbKb5sQT4rB\"]"
[
]

bitcoin-cli getbalance "test"
0.00000000

What am I doing wrong?

Thank you.
Is your bitcoin core completely synchronised?
Is it past the block the transaction got confirmed from?
If either of these are not met, you need to synchronize the chain data fully first.
zoltanb (OP)
Member
**
Offline Offline

Activity: 162
Merit: 24


View Profile
September 05, 2017, 07:02:08 PM
 #3

Hello,

I need some help with bitcoin-cli.

I just installed bitcoin-cli to a linux machine.
I used the below command to create a new receiving address:

bitcoin-cli getnewaddress "test"

I got this address:
[
  "1CJ8BaKhU6GiCe2DJG7vwR8LbKb5sQT4rB"
]

I went to another online wallet and sent 0.00002 BTC to the above address.

From here, it looks like this transaction is confirmed:
https://blockchain.info/tx/7d5e2c5816e120cb74dc4c2b521427b98ae2cebd46b96d68b36dcaa6c3e341a3

However, my bitcoin-cli does not see this balance:

bitcoin-cli listunspent 0 99999 "[\"1CJ8BaKhU6GiCe2DJG7vwR8LbKb5sQT4rB\"]"
[
]

bitcoin-cli getbalance "test"
0.00000000

What am I doing wrong?

Thank you.
Is your bitcoin core completely synchronised?
Is it past the block the transaction got confirmed from?
If either of these are not met, you need to synchronize the chain data fully first.

Thanks. I think it is not yet fully syncronized. I see some big network traffic in the last one hour. About 400-800 MB of incoming traffic per minute.

Once fully syncronized, I should see the incoming transactions almost instantly, right? I know it will be with 0 confirmations, but once I send bitcoins from a wallet to my address, I should see it from command line as an incoming transaction, right?

Please advise. Thanks.
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
September 05, 2017, 07:24:36 PM
 #4

Hello,

I need some help with bitcoin-cli.

I just installed bitcoin-cli to a linux machine.
I used the below command to create a new receiving address:

bitcoin-cli getnewaddress "test"

I got this address:
[
  "1CJ8BaKhU6GiCe2DJG7vwR8LbKb5sQT4rB"
]

I went to another online wallet and sent 0.00002 BTC to the above address.

From here, it looks like this transaction is confirmed:
https://blockchain.info/tx/7d5e2c5816e120cb74dc4c2b521427b98ae2cebd46b96d68b36dcaa6c3e341a3

However, my bitcoin-cli does not see this balance:

bitcoin-cli listunspent 0 99999 "[\"1CJ8BaKhU6GiCe2DJG7vwR8LbKb5sQT4rB\"]"
[
]

bitcoin-cli getbalance "test"
0.00000000

What am I doing wrong?

Thank you.
Is your bitcoin core completely synchronised?
Is it past the block the transaction got confirmed from?
If either of these are not met, you need to synchronize the chain data fully first.

Thanks. I think it is not yet fully syncronized. I see some big network traffic in the last one hour. About 400-800 MB of incoming traffic per minute.

Once fully syncronized, I should see the incoming transactions almost instantly, right? I know it will be with 0 confirmations, but once I send bitcoins from a wallet to my address, I should see it from command line as an incoming transaction, right?

Please advise. Thanks.

That depends on when you got the wallet downloaded.
If it was downloaded in the past few months then it will.
If it was downloaded before then then anything coming from legacy addresses (addresses beginning with a 1) should be picked up immediately. Addresses beginning with a 3 aka "segwit addresses" may not appear until you get one confirmation.
zoltanb (OP)
Member
**
Offline Offline

Activity: 162
Merit: 24


View Profile
September 05, 2017, 07:29:25 PM
 #5

Hello,

I need some help with bitcoin-cli.

I just installed bitcoin-cli to a linux machine.
I used the below command to create a new receiving address:

bitcoin-cli getnewaddress "test"

I got this address:
[
  "1CJ8BaKhU6GiCe2DJG7vwR8LbKb5sQT4rB"
]

I went to another online wallet and sent 0.00002 BTC to the above address.

From here, it looks like this transaction is confirmed:
https://blockchain.info/tx/7d5e2c5816e120cb74dc4c2b521427b98ae2cebd46b96d68b36dcaa6c3e341a3

However, my bitcoin-cli does not see this balance:

bitcoin-cli listunspent 0 99999 "[\"1CJ8BaKhU6GiCe2DJG7vwR8LbKb5sQT4rB\"]"
[
]

bitcoin-cli getbalance "test"
0.00000000

What am I doing wrong?

Thank you.
Is your bitcoin core completely synchronised?
Is it past the block the transaction got confirmed from?
If either of these are not met, you need to synchronize the chain data fully first.

Thanks. I think it is not yet fully syncronized. I see some big network traffic in the last one hour. About 400-800 MB of incoming traffic per minute.

Once fully syncronized, I should see the incoming transactions almost instantly, right? I know it will be with 0 confirmations, but once I send bitcoins from a wallet to my address, I should see it from command line as an incoming transaction, right?

Please advise. Thanks.

That depends on when you got the wallet downloaded.
If it was downloaded in the past few months then it will.
If it was downloaded before then then anything coming from legacy addresses (addresses beginning with a 1) should be picked up immediately. Addresses beginning with a 3 aka "segwit addresses" may not appear until you get one confirmation.

I downloaded and installed the linux app about 3 hours ago. I see all addresses I create on the wallet is starting by 1. Is it good or bad?
Also, this wallet is only for BTC, what command line script should I use for BCH (or BCC)?

Thanks again.
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
September 05, 2017, 07:38:07 PM
 #6

Hello,

I need some help with bitcoin-cli.

I just installed bitcoin-cli to a linux machine.
I used the below command to create a new receiving address:

bitcoin-cli getnewaddress "test"

I got this address:
[
  "1CJ8BaKhU6GiCe2DJG7vwR8LbKb5sQT4rB"
]

I went to another online wallet and sent 0.00002 BTC to the above address.

From here, it looks like this transaction is confirmed:
https://blockchain.info/tx/7d5e2c5816e120cb74dc4c2b521427b98ae2cebd46b96d68b36dcaa6c3e341a3

However, my bitcoin-cli does not see this balance:

bitcoin-cli listunspent 0 99999 "[\"1CJ8BaKhU6GiCe2DJG7vwR8LbKb5sQT4rB\"]"
[
]

bitcoin-cli getbalance "test"
0.00000000

What am I doing wrong?

Thank you.
Is your bitcoin core completely synchronised?
Is it past the block the transaction got confirmed from?
If either of these are not met, you need to synchronize the chain data fully first.

Thanks. I think it is not yet fully syncronized. I see some big network traffic in the last one hour. About 400-800 MB of incoming traffic per minute.

Once fully syncronized, I should see the incoming transactions almost instantly, right? I know it will be with 0 confirmations, but once I send bitcoins from a wallet to my address, I should see it from command line as an incoming transaction, right?

Please advise. Thanks.

That depends on when you got the wallet downloaded.
If it was downloaded in the past few months then it will.
If it was downloaded before then then anything coming from legacy addresses (addresses beginning with a 1) should be picked up immediately. Addresses beginning with a 3 aka "segwit addresses" may not appear until you get one confirmation.

I downloaded and installed the linux app about 3 hours ago. I see all addresses I create on the wallet is starting by 1. Is it good or bad?
Also, this wallet is only for BTC, what command line script should I use for BCH (or BCC)?

Thanks again.

For bcc I'd recommend either electron cash or bitcoinABC.
If you want a well-trusted option, pick the latter (it's been around longer but requires a new copy of the blockchain). You'll have to make sure it doesn't use the same copy of the blockchain, otherwise, it'll mean bitcoin core will need to synchronize again and may cause problems.
Addresses beginning with a 1 is fine. You'll notice mine begins with that.
zoltanb (OP)
Member
**
Offline Offline

Activity: 162
Merit: 24


View Profile
September 05, 2017, 07:56:34 PM
 #7

Thanks for all your help.
How big is the current bitcoin blockchain? Because it is still donwloading. Right now with about 2-300 MB per minute. Just trying to estimate how long will it take to download the entire blockchain.

Also, on a CentOS server, what is the linux path the blockchain is written to? Where do I need to make sure I have enough space?
zoltanb (OP)
Member
**
Offline Offline

Activity: 162
Merit: 24


View Profile
September 05, 2017, 08:11:35 PM
 #8

Thanks for all your help.
How big is the current bitcoin blockchain? Because it is still donwloading. Right now with about 2-300 MB per minute. Just trying to estimate how long will it take to download the entire blockchain.

Also, on a CentOS server, what is the linux path the blockchain is written to? Where do I need to make sure I have enough space?

Never mind, I found the response to my last 2 questions.
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
September 05, 2017, 08:11:56 PM
 #9

Thanks for all your help.
How big is the current bitcoin blockchain? Because it is still donwloading. Right now with about 2-300 MB per minute. Just trying to estimate how long will it take to download the entire blockchain.

Also, on a CentOS server, what is the linux path the blockchain is written to? Where do I need to make sure I have enough space?

The main data folder, I'm not sure but for linux I think it's ~/.bitcoin. If it is, there'll be a folder called blocks and chainstate. (THESE won't be visible while any bitcoin applications are running). If you're running bitcoin-qt, go to help>debug and see what is listed as the datadir.

The current blockchain size I think is about 120-150GB.
IF that's to big, there's always the -prune option, where you have to specify the size (in MB).
E.G: for 10GB, you want -prune=10000
zoltanb (OP)
Member
**
Offline Offline

Activity: 162
Merit: 24


View Profile
September 06, 2017, 06:44:50 AM
 #10

Thanks for all your help.
How big is the current bitcoin blockchain? Because it is still donwloading. Right now with about 2-300 MB per minute. Just trying to estimate how long will it take to download the entire blockchain.

Also, on a CentOS server, what is the linux path the blockchain is written to? Where do I need to make sure I have enough space?

The main data folder, I'm not sure but for linux I think it's ~/.bitcoin. If it is, there'll be a folder called blocks and chainstate. (THESE won't be visible while any bitcoin applications are running). If you're running bitcoin-qt, go to help>debug and see what is listed as the datadir.

The current blockchain size I think is about 120-150GB.
IF that's to big, there's always the -prune option, where you have to specify the size (in MB).
E.G: for 10GB, you want -prune=10000

Thanks. Can I still use the wallet if I do not download the entire blockchain?
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
September 06, 2017, 10:34:26 AM
 #11

Thanks for all your help.
How big is the current bitcoin blockchain? Because it is still donwloading. Right now with about 2-300 MB per minute. Just trying to estimate how long will it take to download the entire blockchain.

Also, on a CentOS server, what is the linux path the blockchain is written to? Where do I need to make sure I have enough space?

The main data folder, I'm not sure but for linux I think it's ~/.bitcoin. If it is, there'll be a folder called blocks and chainstate. (THESE won't be visible while any bitcoin applications are running). If you're running bitcoin-qt, go to help>debug and see what is listed as the datadir.

The current blockchain size I think is about 120-150GB.
IF that's to big, there's always the -prune option, where you have to specify the size (in MB).
E.G: for 10GB, you want -prune=10000

Thanks. Can I still use the wallet if I do not download the entire blockchain?

If you want to not download the blockchain, this is what lightweight wallets were created for. I'd suggest electrum.
If there's already a substantial amount in the wallet, you'll want to export the private keys. I think the command is something like "dumpprivkey address" from the CLI with the address being the address you want the private key of.
You can then either import or sweep the coins into electrum.
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!