-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
61 lines (42 loc) · 1.19 KB
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package main
import (
"github.com/litpad/stellar-wallet/utils"
)
// func main(){
// secretKey, address := utils.KeyPair()
// err := utils.WriteToFile(secretKey)
// if err != nil{
// log.Fatalf("Error writing secret key to file: %v", err)
// }
// // fund with 10,000 native tokens on testnet
// utils.FundAccount(address)
// // logs account balance
// utils.AccountBalance(address)
// }
// func main(){
// fmt.Println("Enter address: ")
// scanner := bufio.NewScanner(os.Stdin)
// var address string
// if scanner.Scan(){
// address = scanner.Text()
// }
// if err := scanner.Err(); err != nil {
// fmt.Fprintln(os.Stderr, "Error reading input:", err)
// }
// utils.AccountBalance(address)
// }
// func main(){
// fmt.Println("Enter address: ")
// scanner := bufio.NewScanner(os.Stdin)
// var address string
// if scanner.Scan(){
// address = scanner.Text()
// }
// if err := scanner.Err(); err != nil {
// fmt.Fprintln(os.Stderr, "Error reading input:", err)
// }
// utils.Pay("SCBG7YEFMCURTCEHDERQCRKLVQCSYZ3BLXUCP6W56PSOJ4QA36RRI36T", address, "400", "test payment")
// }
func main(){
utils.Watch("SCBG7YEFMCURTCEHDERQCRKLVQCSYZ3BLXUCP6W56PSOJ4QA36RRI36T")
}