Popularity
0.4
Stable
Activity
3.5
Declining
1
1
0

Programming language: Go
Tags: Go Tools     Go     Golang     Bitcoin     Bsv     Bitindex     Mattercloud     Matter    
Latest version: v0.1.0

go-mattercloud alternatives and similar packages

Based on the "Go Tools" category

Do you think we are missing an alternative of go-mattercloud or a related project?

Add another 'Go Tools' Package

README

go-mattercloud

go-mattercloud is the unofficial golang implementation for the MatterCloud API

Go Build Status Report Codacy Badge Release standard-readme compliant GoDoc

Table of Contents

Installation

go-mattercloud requires a supported release of Go.

$ go get -u github.com/mrz1836/go-mattercloud

Documentation

You can view the generated documentation here.

You can also view the MatterCloud API documentation.

Features

  • [Client](client.go) is completely configurable
  • Customize the network per request (main, test or stn)
  • Using heimdall http client with exponential backoff & more
  • Current (V3) coverage for the MatterCloud API API
    • [x] Authentication
    • [x] Address
    • [x] Transaction

Examples & Tests

All unit tests and [examples](mattercloud_test.go) run via Travis CI and uses Go version 1.13.x. View the [deployment configuration file](.travis.yml).

Run all tests (including integration tests)

$ cd ../go-mattercloud
$ go test ./... -v

Run tests (excluding integration tests)

$ cd ../go-mattercloud
$ go test ./... -v -test.short

Benchmarks

Run the Go [benchmarks](mattercloud_test.go):

$ cd ../go-mattercloud
$ go test -bench . -benchmem

Code Standards

Read more about this Go project's [code standards](CODE_STANDARDS.md).

Usage

Basic implementation:

package main

import (
    "log"

    "github.com/mrz1836/go-mattercloud"
)

func main() {

    // Create a new client
    client, _ := mattercloud.NewClient("your-secret-api-key", mattercloud.NetworkMain, nil)

    // Get balance for an address
    balance, _ := client.AddressBalance("16ZqP5Tb22KJuvSAbjNkoiZs13mmRmexZA")

    // What's the confirmed balance?
    log.Println("confirmed balance:", balance.Confirmed)
}

Maintainers

MrZ

Contributing

View the [contributing guidelines](CONTRIBUTING.md) and follow the [code of conduct](CODE_OF_CONDUCT.md).

Support the development of this project πŸ™

Donate

Credits

@Attila & MatterCloud for their hard work on the MatterCloud API

Looking for a Javascript version? Check out the MatterCloud JS SDK

License

License


*Note that all licence references and agreements mentioned in the go-mattercloud README section above are relevant to that project's source code only.