diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -0,0 +1,18 @@ +package main + +import ( + "com.teddywing/new-house-on-the-block/vendor/_nuts/github.com/fabioberger/coinbase-go" + "fmt" + "log" + "os" +) + +func main() { + c := coinbase.ApiKeyClientSandbox(os.Getenv("COINBASE_KEY"), os.Getenv("COINBASE_SECRET")) + + balance, err := c.GetBalance() + if err != nil { + log.Print(err) + } + fmt.Printf("Balance is %f BTC\n", balance) +} |
