api

package
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: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// MAINNET is the main network.
	MAINNET = "mainnet"
	// TESTNET is the test network.
	TESTNET = "testnet"
)

Variables

This section is empty.

Functions

func SetNetwork

func SetNetwork(n string) error

SetNetwork allows you to set the network. Valid values are mainnet/testnet.

Types

type Response

type Response struct {
	ReceivingAddress string `json:"receivingAddress,omitempty"`
	CashAddr         string `json:"cashAddr,omitempty"`
	PublicKey        string `json:"publicKey,omitempty"`
	Error            string `json:"error,omitempty"`
}

Response represents the response from the HandCash receive API.

func Receive

func Receive(handle string) (*Response, error)

Receive takes a handle and returns the Response struct with the address.

Jump to

Keyboard shortcuts

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