Bitcoin Forum
July 04, 2024, 07:49:21 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoind and new incomming block analyzing  (Read 507 times)
scalaz (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 1


View Profile
March 11, 2016, 01:05:15 AM
 #1

Hello!

I want to analyze new incoming blocks about next data

Code:
[
{"address":"3NTyKSmiZqW8fNPnCoZgd1HwS2DqVXHKG6",
"txid":"90e3439211677936804a9190e5074db0ce3eb7468edac4f455e3a16b965804d9",
"vout":1,
"ts":1448213569,
"scriptPubKey":"a914e3e30f2d79e5d10d29ceebd0c0bb96881c41d62a87",
"amount":0.0005,
"confirmations":17269,
"confirmationsFromCache":false}
]

As you can see address monitoring.

I found next command

== Network ==
addnode "node" "add|remove|onetry"
getaddednodeinfo dns ( "node" )
getconnectioncount
getnettotals
getnetworkinfo
getpeerinfo
ping

So can get block by hash
Quote
{
"hash" : "0000000000000000019b0f131d9c2c3256a0e8a2a2ab2ff0e985318bf73391c6",
"confirmations" : 1,
"size" : 144258,
"height" : 402104,
"version" : 4,
"merkleroot" : "43c783097b091576997fc20b7d49f39363f80214dba836dc297a6babee273281",
"tx" : [
"e2706d6785c95829079b52da07d84b944cc15d78c03d88011362a86932f354f9",
...e.t.c

],
"time" : 1457657306,
"nonce" : 1259980159,
"bits" : "1806f0a8",
"difficulty" : 158427203767.39169312,
"chainwork" : "000000000000000000000000000000000000000000135ec2804a2c55ce02fa05",
"previousblockhash" : "0000000000000000037718c1cbb0d534297b955253cca3d7f68df64a83e04dc4"
}
How can I get all another data ?

I mean

next fields

Quote
[
{"address":"3NTyKSmiZqW8fNPnCoZgd1HwS2DqVXHKG6",
"txid":"90e3439211677936804a9190e5074db0ce3eb7468edac4f455e3a16b965804d9",
"vout":1,
"ts":1448213569,
"scriptPubKey":"a914e3e30f2d79e5d10d29ceebd0c0bb96881c41d62a87",
"amount":0.0005,
"confirmations":17269,
"confirmationsFromCache":false}
]

Which commands ?
Thanks!
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3444
Merit: 6745


Just writing some code


View Profile WWW
March 11, 2016, 01:17:21 AM
 #2

If you want the Unspent Outputs you use listunspent. If you want to find out more data about a transaction, use getrawtransaction. You can use listtransactions to get the transactions for a specific account (and accounts can be made address specific) and then use getrawtransaction for each transaction to get the data of that transaction.

Basically look at all of the commands under the wallet section and use the help <cmd> where <cmd> is the command you want to know about to learn about what each command does.

And be more clear about what you want to do when you ask for help.

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!