Categorygithub.com/shawn-cx-li/bitgo
repositorypackage
0.0.0-20220605075348-1904a9a39a60
Repository: https://github.com/shawn-cx-li/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.

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