web

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(bind string, store spec.Store) governor.Service

Types

type UTXOItem

type UTXOItem struct {
	TxID   string      `json:"tx"`     // hex-encoded transaction ID (byte-reversed)
	VOut   uint32      `json:"vout"`   // transaction output number
	Value  koinu.Koinu `json:"value"`  // UTXO value to 8 decimal places, as a decimal string
	Type   string      `json:"type"`   // UTXO type (determines what you need to sign it)
	Script string      `json:"script"` // hex-encoded UTXO locking script (needed to sign the UTXO)
}

type UTXOResponse

type UTXOResponse struct {
	UTXO []UTXOItem `json:"utxo"`
}

type WebAPI

type WebAPI struct {
	governor.ServiceCtx
	// contains filtered or unexported fields
}

func (*WebAPI) Run

func (a *WebAPI) Run()

goroutine

func (*WebAPI) Stop

func (a *WebAPI) Stop()

called on any Goroutine

type WebError

type WebError struct {
	Error  string `json:"error"`
	Reason string `json:"reason"`
}

Jump to

Keyboard shortcuts

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