repositorypackage
0.0.0-20200708065903-b1098b3eaa7d
Repository: https://github.com/jazzserve/bitgo.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# README
BitGo Golang SDK V2
The BitGo Platform and SDK makes it easy to build multi-signature Bitcoin applications today.
Installing
Use go get
to install the latest version of the library. This command will install the BitGo Golang SDK
executable along with the library and its dependencies:
go get -u github.com/jazzserve/bitgo
Next, include library in your application:
import "github.com/jazzserve/bitgo"
Documentation
View API Documentation.
Example Usage
List Wallets
b, err := bitgo.New("test", time.Minute)
if err != nil {
log.Fatal(err.Error())
}
list, err := b.Token("{Access token}").Coin("tbtc").Debug(true).ListWallets(bitgo.ListParams{
AllTokens: true,
})
if err != nil {
log.Fatalf("%#v\n", err.(bitgo.Error))
}
for _, w := range list.Wallets {
log.Println(w.ID, w.Label)
}