Popularity
0.7
Growing
Activity
7.6
Declining
5
1
0

Programming language: Go
Tags: API     Go Tools     Go     Golang     Bitcoin     Broadcast     Bsv     Whatsonchain     Woc    
Latest version: v0.3.0

go-whatsonchain alternatives and similar packages

Based on the "Go Tools" category

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

Add another 'Go Tools' Package

README

go-whatsonchain

go-whatsonchain is the unofficial golang implementation for the whatsonchain.com API

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

Table of Contents

Installation

go-whatsonchain requires a supported release of Go.

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

Documentation

You can view the generated documentation here.

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 coverage for the whatsonchain.com API
    • [x] Health
    • [x] Chain Info
    • [x] Circulating Supply
    • [x] Blocks
    • [x] Transactions
    • [x] Addresses
    • [ ] Receipt
    • [ ] Statement
    • [ ] Mempool
    • [ ] Search

Examples & Tests

All unit tests and [examples](whatsonchain_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-whatsonchain
$ go test ./... -v

Run tests (excluding integration tests)

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

Benchmarks

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

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

Code Standards

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

Usage

  • View the [whatsonchain examples](whatsonchain_test.go)

Basic implementation:

package main

import (
    "fmt"
    "github.com/mrz1836/go-whatsonchain"
)

func main() {

    // Create a client
    client, _ := whatsonchain.NewClient(whatsonchain.NetworkMain, nil)

    // Get a balance for an address
    balance, _ := client.AddressBalance("16ZqP5Tb22KJuvSAbjNkoiZs13mmRmexZA")
    fmt.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 πŸ™ and support WhatsOnChain

Donate Support

Credits

WhatsOnChain for their hard work on the Whatsonchain API

AustEcon's Python Version

License

License


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