unspentoutputs

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 License: Apache-2.0, BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(c echo.Context) error

Handler gets the unspent outputs.

Types

type OutputID

type OutputID struct {
	ID             string               `json:"id"`
	Balances       []utils.Balance      `json:"balances"`
	InclusionState utils.InclusionState `json:"inclusion_state"`
}

OutputID holds the output id and its inclusion state

type Request

type Request struct {
	Addresses []string `json:"addresses,omitempty"`
	Error     string   `json:"error,omitempty"`
}

Request holds the addresses to query.

type Response

type Response struct {
	UnspentOutputs []UnspentOutput `json:"unspent_outputs,omitempty"`
	Error          string          `json:"error,omitempty"`
}

Response is the HTTP response from retrieving value objects.

type UnspentOutput

type UnspentOutput struct {
	Address   string     `json:"address"`
	OutputIDs []OutputID `json:"output_ids"`
}

UnspentOutput holds the address and the corresponding unspent output ids

Jump to

Keyboard shortcuts

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