bfgapi

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIVersion = 2

	BitcoinSuperFinality = 10
)

Variables

View Source
var (
	APIVersionRoute         = fmt.Sprintf("v%d", APIVersion)
	DefaultListenAddress    = "localhost:8080"
	DefaultPrometheusListen = "localhost:2112"

	RouteKeystoneFinality = "GET /" + APIVersionRoute + "/keystonefinality/{hash...}"
)

Functions

This section is empty.

Types

type L2KeystoneBitcoinFinalityResponse

type L2KeystoneBitcoinFinalityResponse struct {
	L2Keystone             hemi.L2Keystone `json:"l2_keystone"`
	BlockHash              api.ByteSlice   `json:"block_hash"`
	BlockHeight            uint            `json:"block_height"`
	EffectiveConfirmations uint            `json:"effective_confirmations"`
	SuperFinality          *bool           `json:"super_finality,omitempty"`
}

L2KeystoneBitcoinFinalityResponse is a response to an HTTP get on RouteKeystoneFinality.

Jump to

Keyboard shortcuts

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