Author

Topic: How to get the mempool size during a given block (Read 255 times)

member
Activity: 99
Merit: 14
Thx but I wanted to do with my own local client-cli without any API that will impose me limitations

No problem, AFAIK data analysis & machine learning enjoy are easier/perform better with more data, so i thought obtain past data once might be useful in your case.

Yeah, For now I'm getting all the data possible from my local client, than I'll se whether to integrate something I can't get already there like mempool size, if I'll be not happy with te results I'll get

This tool can be useful in your case, it parses the blockchain and get useful information from it. But it does it without using a wallet, it takes the binaries files of the blockchain directly.

Check it here: https://github.com/NicolasChoukroun/blockparser

It is in C and can be compiled easily on an unix OS.

Awesome thx for point me to this tool
full member
Activity: 615
Merit: 154
CEO of Metaisland.gg and W.O.K Corp
Thx but I wanted to do with my own local client-cli without any API that will impose me limitations

No problem, AFAIK data analysis & machine learning enjoy are easier/perform better with more data, so i thought obtain past data once might be useful in your case.

Yeah, For now I'm getting all the data possible from my local client, than I'll se whether to integrate something I can't get already there like mempool size, if I'll be not happy with te results I'll get

This tool can be useful in your case, it parses the blockchain and get useful information from it. But it does it without using a wallet, it takes the binaries files of the blockchain directly.

Check it here: https://github.com/NicolasChoukroun/blockparser

It is in C and can be compiled easily on an unix OS.
member
Activity: 99
Merit: 14
Thx but I wanted to do with my own local client-cli without any API that will impose me limitations

No problem, AFAIK data analysis & machine learning enjoy are easier/perform better with more data, so i thought obtain past data once might be useful in your case.

Yeah, For now I'm getting all the data possible from my local client, than I'll se whether to integrate something I can't get already there like mempool size, if I'll be not happy with te results I'll get
legendary
Activity: 2520
Merit: 2853
Top Crypto Casino
now I'm running the command "getnetworkhashps" and I get numnbers like 8.651303124075628e+20 how to read it?
8.651303124075628e+20 means 8.651303124075628 *10^20 hashes per second.
To make it easier to read convert it to tera =10^12: 855130312.4075628*10^12 around 855 million terahash persecond. I don't think this is the current hashrate though.
legendary
Activity: 1135
Merit: 1166
now I'm running the command "getnetworkhashps" and I get numnbers like 8.651303124075628e+20 how to read it?

See here: https://en.wikipedia.org/wiki/Scientific_notation

This number means 8.65 * 10^20, i.e. 8 followed by 20 zeros (roughly speaking).
member
Activity: 99
Merit: 14
If you're looking for historical data, you could check https://bitcoinvisuals.com/ & https://bitcoinperf.com.
You also can check https://www.lopp.net/bitcoin-information/statistics-metrics.html for list of website which show statistics and metrics.

The only problem is i don't know if any of them have API so you can get the data from python, i'm afraid you need to DYOR.

Thx but I wanted to do with my own local client-cli without any API that will impose me limitations

now I'm running the command "getnetworkhashps" and I get numnbers like 8.651303124075628e+20 how to read it?
member
Activity: 99
Merit: 14
Your node's current mempool size can be obtained with the getmempoolinfo command, which returns both the number of unconfirmed transactions ("size") and the total amount of data they take up ("bytes"). Bitcoin Core does not store historical mempool info; you'll have to record it yourself by calling getmempoolinfo periodically.

Note also that there no information whatsoever about the mempool stored in the blockchain itself, partly because there is no such thing as "the" mempool; each node has its own mempool, which will vary from the mempools of other nodes depending on which unconfirmed transactions that particular node knows about. That different nodes can disagree about which transactions exist is the reason a blockchain is needed in the first place.

thx

I was afraid that there was not a way to get historical data, well too bad
legendary
Activity: 4326
Merit: 3041
Vile Vixen and Miss Bitcointalk 2021-2023
Your node's current mempool size can be obtained with the getmempoolinfo command, which returns both the number of unconfirmed transactions ("size") and the total amount of data they take up ("bytes"). Bitcoin Core does not store historical mempool info; you'll have to record it yourself by calling getmempoolinfo periodically.

Note also that there no information whatsoever about the mempool stored in the blockchain itself, partly because there is no such thing as "the" mempool; each node has its own mempool, which will vary from the mempools of other nodes depending on which unconfirmed transactions that particular node knows about. That different nodes can disagree about which transactions exist is the reason a blockchain is needed in the first place.
member
Activity: 99
Merit: 14
Hi there,

I'm playing around with python and bitcoin-cli.

I'm extracting some data from the blockchain for some data analysis, machine learning and stuff like this.

I would like to know whether is there a command to know the mempool size or tx number during a given block number.

Thanks
Jump to: