<p>I'm not certain about what is your question exactly, but the transaction graph as you call is literally the block's content. If you want to see all transactions that happened from date <code>X</code> to date <code>Y</code>, you just take the first block whose timestamp is greater or equal to <code>X</code>, and the last block whose timestamp is lesser or equal to <code>Y</code>. All transactions that fall in this period will be inside the blocks between those two blocks.<br />
Any API that allows you to access blocks will do. Pretty much all of them, do. And of course, you can always use your node.<br />
As for memory exhaustion, yes, considerable periods may take a lot of RAM. You might limit the selected period, or else you have to write some summary to disk and only load parts of it.</p>

CC BY-SA 4.0
2023-01-19T15:53:23.480Z
If I use my own node, to get a block at right date, don't I have to iterate through entire chain? Also, if there is specific API you recommend to do this? Maybe I am missing, but it seems like blockchain.com api only allow to retreive singe block, or block for one day at a time.
xor
CC BY-SA 4.0
2023-01-24T20:05:39.773Z
It depends on what exactly you want. Inside a block, you have a list of transactions. Each transaction contains a list of inputs and outputs. The graph I'm assuming you need is money moves from UTXO A and B to UTXO C. This is accomplishable using only block data, without iterating over the whole chain. Yes, it should only allow one block at time, so you have to make multiple requests.
Davidson Souza
CC BY-SA 4.0
2024-03-30T18:01:31.827Z
The question is pretty clear: the author is looking for the Bitcoin network graph in a certain moment. This is formally a graph with nodes and edges.
sw.
CC BY-SA 4.0
2023-01-18T23:48:27.250Z
2023-01-18T23:48:27.250Z
Davidson Souza
<p>I want to create a graph data of Bitcoin transactions in specific time period. In other words, I am trying to write some kind of program when a user enters specific time range, transactions graph data will be returned, and user will be able to play around with it.</p>
<p>Does anyone know what would be the easiest or best way to do this? I know there are couple of APIs I can use (Blockchain.com, Blockstream), or I can run full node, but wanted to hear people's suggestions. My other concern would be going over memory capacity for retrieving data in big time range.</p>
<p>Thank you!</p>

CC BY-SA 4.0
2023-01-19T18:27:39.670Z
It is not clear to me what sort of graph you want to produce. Could you please edit your question to explain in more detail what you are trying to do?
Murch
CC BY-SA 4.0
2024-03-30T18:01:51.490Z
The question is pretty clear: the author is looking for the Bitcoin network graph in a certain moment. This is formally a graph with nodes and edges.
sw.
CC BY-SA 4.0
2024-03-30T18:11:14.137Z
Let's look at papers like this: BTCmap: Mapping Bitcoin Peer-to-Peer Network
Topology https://www.researchgate.net/profile/Varun-Deshpande/publication/329299820_BTCmap_Mapping_Bitcoin_Peer-to-Peer_Network_Topology/links/5cbddfe4299bf1209778bdc2/BTCmap-Mapping-Bitcoin-Peer-to-Peer-Network-Topology.pdf
sw.
CC BY-SA 4.0
2024-03-30T20:09:53.560Z
You can quickly get only the nodes from https://bitnodes.io/api/
sw.
<transactions><client>
How can I retrieve transaction graph data in specific time period
xor
# How can I retrieve transaction graph data in specific time period

(Asked by: username_0 on 2023-01-18)

I want to create a graph data of Bitcoin transactions in specific time period. In other words, I am trying to write some kind of program when a user enters specific time range, transactions graph data will be returned, and user will be able to play around with it.

Does anyone know what would be the easiest or best way to do this? I know there are couple of APIs I can use (Blockchain.com, Blockstream), or I can run full node, but wanted to hear people's suggestions. My other concern would be going over memory capacity for retrieving data in big time range.

Thank you!

**Tags:** transactions, client

> **Comments:**
> **username_1**: It is not clear to me what sort of graph you want to produce. Could you please edit your question to explain in more detail what you are trying to do?  
> **username_2**: The question is pretty clear: the author is looking for the Bitcoin network graph in a certain moment. This is formally a graph with nodes and edges.  
> **username_2**: Let's look at papers like this: BTCmap: Mapping Bitcoin Peer-to-Peer Network Topology https://www.researchgate.net/profile/Varun-Deshpande/publication/329299820_BTCmap_Mapping_Bitcoin_Peer-to-Peer_Network_Topology/links/5cbddfe4299bf1209778bdc2/BTCmap-Mapping-Bitcoin-Peer-to-Peer-Network-Topology.pdf  
> **username_2**: You can quickly get only the nodes from https://bitnodes.io/api/  

---

## 1 answers

### Answer by username_3 on 2023-01-18. Score: 0

I'm not certain about what is your question exactly, but the transaction graph as you call is literally the block's content. If you want to see all transactions that happened from date `X` to date `Y`, you just take the first block whose timestamp is greater or equal to `X`, and the last block whose timestamp is lesser or equal to `Y`. All transactions that fall in this period will be inside the blocks between those two blocks.  
Any API that allows you to access blocks will do. Pretty much all of them, do. And of course, you can always use your node.  
As for memory exhaustion, yes, considerable periods may take a lot of RAM. You might limit the selected period, or else you have to write some summary to disk and only load parts of it.

> **Comments:**
> **username_0**: If I use my own node, to get a block at right date, don't I have to iterate through entire chain? Also, if there is specific API you recommend to do this? Maybe I am missing, but it seems like blockchain.com api only allow to retreive singe block, or block for one day at a time.  
> **username_3**: It depends on what exactly you want. Inside a block, you have a list of transactions. Each transaction contains a list of inputs and outputs. The graph I'm assuming you need is money moves from UTXO A and B to UTXO C. This is accomplishable using only block data, without iterating over the whole chain. Yes, it should only allow one block at time, so you have to make multiple requests.  
> **username_2**: The question is pretty clear: the author is looking for the Bitcoin network graph in a certain moment. This is formally a graph with nodes and edges.  

---

