types

package
v0.0.0-...-c93481c Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Header struct {
	Height int `json:"height"`
}

Header is used by HeadersSubscribe().

type TxHistory

type TxHistory []*TxInfo

TxHistory is returned by ScriptHashGetHistory.

func (TxHistory) Status

func (history TxHistory) Status() string

Status encodes the status of the address history as a hex-encoded hash, according to the Electrum specification. https://github.com/spesmilo/electrumx/blob/75d0e25bf022355941ae4ecb4d5eba41babcf041/docs/protocol-basics.rst#status

type TxInfo

type TxInfo struct {
	// >0 for a confirmed transaction. 0 for an unconfirmed transaction. -1 for an unconfirmed
	// transaction with an unconfirmed parent transaction.
	Height int    `json:"height"`
	TxHash string `json:"tx_hash"`
}

TxInfo is returned by ScriptHashGetHistory.

Jump to

Keyboard shortcuts

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