arnaucube
arnaucube/goBlockchainDataAnalysisPublic Self-hosted repository
goBlockchainDataAnalysis/DevelopmentNotes.md
DevelopmentNotes.mdRaw
 1# Development Notes
 2
 3## ToDo list
 4
 5- Backend
 6    - Network Address generation avoiding infinite relation loops
 7    - Sankey Address generation without loops
 8- Frontend
 9    - After Sankey visualization, go to Network Address visualization and render without Sankey dots
10- Both
11    - Tx/day
12    - Tx volume
13    - Block size
14    - Blockchain size
15
16other
17- To get tx/hours of last 24 hours
18    Search for TxModel with DateF > last24h
19    Count for each hour
20- To get tx/day of last month
21    Search TxModel with DateF > last month
22    Count each day
23- Add counter with total blocks, total tx, total address
24
25- store date hour, day, etc:
26    ```Go
27    type DateModel struct {
28        Hour        string  `json:"hour"`
29        Day         string  `json:"day"`
30        Month       string  `json:"month"`
31        Amount      float64 `json:"amount"`
32        BlockHash   string  `json:"blockhash"`
33        BlockHeight string  `json:"blockheight"`
34    }
35```
36
37- mantain connection with wallet using websockets
38
39- add 24h to hour analysis, to show also hours with 0 transactions