Bitcoin Forum
May 13, 2024, 12:36:34 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Analyze the blockchain in windows  (Read 147 times)
Miraitee (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 1


View Profile
July 09, 2021, 02:30:54 AM
Merited by Welsh (1)
 #1

I just recently installed the full bitcoin blockchain on windows,

Is it possible to analyze the blockchain through some command line?

If yes, can you help me with some links?

Thank you.
1715603794
Hero Member
*
Offline Offline

Posts: 1715603794

View Profile Personal Message (Offline)

Ignore
1715603794
Reply with quote  #2

1715603794
Report to moderator
1715603794
Hero Member
*
Offline Offline

Posts: 1715603794

View Profile Personal Message (Offline)

Ignore
1715603794
Reply with quote  #2

1715603794
Report to moderator
"This isn't the kind of software where we can leave so many unresolved bugs that we need a tracker for them." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715603794
Hero Member
*
Offline Offline

Posts: 1715603794

View Profile Personal Message (Offline)

Ignore
1715603794
Reply with quote  #2

1715603794
Report to moderator
1715603794
Hero Member
*
Offline Offline

Posts: 1715603794

View Profile Personal Message (Offline)

Ignore
1715603794
Reply with quote  #2

1715603794
Report to moderator
1715603794
Hero Member
*
Offline Offline

Posts: 1715603794

View Profile Personal Message (Offline)

Ignore
1715603794
Reply with quote  #2

1715603794
Report to moderator
nc50lc
Legendary
*
Online Online

Activity: 2408
Merit: 5601


Self-proclaimed Genius


View Profile
July 09, 2021, 03:28:31 AM
Merited by ABCbits (1), hugeblack (1)
 #2

What type of data do you need to analyze from the blockchain?

For the commands, you can use this link:https://bitcoincore.org/en/doc/0.21.0/rpc/
The command list is on the right-hand side of the page, you can select older Bitcoin core versions under: "Development->RPC Docs->(version)".

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
pooya87
Legendary
*
Offline Offline

Activity: 3444
Merit: 10558



View Profile
July 09, 2021, 03:31:19 AM
 #3

I just recently installed the full bitcoin blockchain on windows,
I'm assuming you mean you've installed a bitcoin "full node" on your computer and have fully synced it with the network.

Quote
Is it possible to analyze the blockchain through some command line?
It depends on how that full node has stored the blockchain on disk and what kind of analysis you want to perform.
Blockchain is just raw data that has to be indexed if you want to perform additional data analysis on it. Full nodes like bitcoin core don't really index the blockchain. However there are a lot of information you can already extract using the RPC commands. For example: https://chainquery.com/bitcoin-cli#blockchain (you can run almost all commands in your browser).

What kind of information do you want to extract?

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
NotATether
Legendary
*
Offline Offline

Activity: 1596
Merit: 6740


bitcoincleanup.com / bitmixlist.org


View Profile WWW
July 09, 2021, 12:24:21 PM
 #4

Is it possible to analyze the blockchain through some command line?

I also assume you're running the Bitcoin-QT GUI, so you have a console accessible at Window > Console which you can run all the RPC commands in without opening a command prompt or powershell.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
July 09, 2021, 09:56:53 PM
Last edit: November 14, 2023, 11:46:49 PM by HCP
Merited by Welsh (6), ABCbits (2)
 #5

Is it possible to analyze the blockchain through some command line?
You'll need to clearly define what you mean by "analyze the blockchain", before any can give you any meaningful advice or links to possible solutions/guides. Without knowing exactly what it is that you're trying to achieve, it's going to be impossible to point you in the right direction.

One thing to check before you begin, if you're wanting to use certain RPC calls (like getrawtransaction etc) that involve transactions that do not relate to your wallet, you'll need to make sure that you have txindex=1 set in your bitcoin.conf file, so that Bitcoin Core is indexing all the transactions.

You'll also want to make sure that your node is not running in "pruned" mode. Make sure there is no prune= value set in your bitcoin.conf and that in the "Settings -> Options -> Main" tab, that the "prune block storage to..." option is not checked:


Both of these are generally required for most analysis tools to work properly.


Note that if your node is currently pruned, you'll need to disable it and then resync your node. You'll need an absolute bare minimum of ~400 GB of free disk space to fully sync Bitcoin Core with transaction indexing turned on... having at least 1TB is better if you indeed to keep and run this node long term.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
July 10, 2021, 11:29:23 AM
 #6

Is it possible to analyze the blockchain through some command line?

If you want to analyze the blockchain, you need to have the txindex flag set. Otherwise you won't be able to query transactions not related to your wallet.

Further, the preferred software depends on your specific task and on what exactly you want to analyze.

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!