Bitcoin Forum
May 17, 2024, 02:42:09 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoin-cli transaction confirmation  (Read 1099 times)
wpsd (OP)
Newbie
*
Offline Offline

Activity: 41
Merit: 0


View Profile
October 18, 2015, 01:18:30 AM
 #1

Hi does bitcoin-cli can shown transaction confirmation count ?

According to this http://bitcoin.stackexchange.com/questions/11759/get-non-wallet-transactions-using-bitcoin-rpc-gettransaction
I can use gettransaction <txid> and it will shown the confirmation count and it's not required to be my own transaction.
But this article is 2 years ago.

I just install bitcoind-0.11.0 in ubuntu 14.04 by manual compile with wallet enable
Then start bitcoind with -txindex=1 -upnp=0

It already download all the block, but I cannot call bitcoin-cli gettransaction it said that "error: {"code":-32601,"message":"Method not found (disabled)"}"
so  I check using getrawtransaction <txid> 1 but there is no confirmation parameter or block height their.

Could you please guide me ?
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3402
Merit: 6641


Just writing some code


View Profile WWW
October 18, 2015, 01:28:53 AM
 #2

getrawtransaction should give you the confirmation. According to the reference here: https://bitcoin.org/en/developer-reference#getrawtransaction, it must return the number of confirmations. Check again.

wpsd (OP)
Newbie
*
Offline Offline

Activity: 41
Merit: 0


View Profile
October 18, 2015, 01:57:23 AM
 #3

 Cheesy It wasn't there last time , guess it's not finish indexing

Thanks.

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!