The BitGo Platform and SDK makes it easy to build multi-signature Bitcoin applications today.
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"
View API Documentation.
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)
}