Skip to content

jazzserve/bitgo

Repository files navigation

BitGo Golang SDK V2

The BitGo Platform and SDK makes it easy to build multi-signature Bitcoin applications today.

Build Status

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)
}

About

BitGo Golang SDK

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages