handcash-go

command module
v0.0.0-...-1bca579 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2018 License: MIT Imports: 5 Imported by: 0

README

License ReportCard

handcash-go

Go library for handcash's API @ http://handcash.io/api-docs

Installation

go get -u github.com/HandCash/handcash-go

CLI Usage

handcash-go someuser

This returns:

{
    "receivingAddress": "mxszqDyaNGFcmTkPjJ2BGRpSTChdVWaNPZ",
    "publicKey": "03d193439a2f06ed1121be5b4e61381386ffee5ec5bec33daf17e33ccb34622753"
}

Library Usage

import (
    "fmt"

    "github.com/HandCash/handcash-go/api"
)

func main() {
    handle := "someuser"
    resp, err := api.Receive(handle)
    if err != nil {
        fmt.Println("request failed")
        return
    }

    fmt.Println(resp)
}

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/HandCash/handcash-go.

License

This library is available as open source under the terms of the MIT License.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL