Revision | f3819b6876c578bee60422b85311cb7388b54f02 (tree) |
---|---|
Time | 2023-12-17 23:13:16 |
Author | Lorenzo Isella <lorenzo.isella@gmai...> |
Commiter | Lorenzo Isella |
A project to track addresses and portfolios on several blockchains.
@@ -0,0 +1,40 @@ | ||
1 | +rm(list=ls()) | |
2 | + | |
3 | +library(tidyverse) | |
4 | +library(janitor) | |
5 | +library(cryptotrackr) | |
6 | + | |
7 | + | |
8 | +source("/home/lorenzo/myprojects-hg/R-codes/stat_lib.R") | |
9 | + | |
10 | +## etherscan | |
11 | + | |
12 | +## address <- "0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae" | |
13 | + | |
14 | +## api_key <- "8GIHGAKW8FN23D9JEZY9273W5DFHA8DEJS" | |
15 | + | |
16 | +## account_balance <- etherscan_account_balance(address, api_key) | |
17 | + | |
18 | + | |
19 | +## covalent | |
20 | + | |
21 | + | |
22 | + | |
23 | + | |
24 | +api_key <- "cqt_rQMGJ9wyMJhhhPYFQjKCFGRFBjM6" | |
25 | +## balances <- covalent_balances(api_key, "1", "trevorfrench.eth", csv = FALSE) | |
26 | +## balances$data$items[,c(2,10)] | |
27 | + | |
28 | + | |
29 | + | |
30 | + | |
31 | +balances2 <- covalent_balances(api_key, "56", | |
32 | + "0x08bb674adb855c7a08dd462c814be4829399b845", csv = FALSE) | |
33 | + | |
34 | +my_bal <- balances2$data$items[,c(2,10)] |> | |
35 | + as_tibble() | |
36 | + | |
37 | +print("So far so good") | |
38 | + | |
39 | + | |
40 | + |