gethapi

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: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultCommandTimeout = 5 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type L2KeystoneLatestRequest

type L2KeystoneLatestRequest struct {
	KeystoneCount uint `json:"keystone_count"`
}

type L2KeystoneLatestResponse

type L2KeystoneLatestResponse struct {
	L2Keystones []hemi.L2Keystone `json:"keystones"`
	Error       *protocol.Error   `json:"error,omitempty"`
}

Same as ValidityResponse but keep separate in case one changes in future api versions.

type L2KeystoneValidityRequest

type L2KeystoneValidityRequest struct {
	L2KeystoneHash chainhash.Hash `json:"l2_keystone_hash"`
	KeystoneCount  uint           `json:"keystone_count"`
}

type L2KeystoneValidityResponse

type L2KeystoneValidityResponse struct {
	L2Keystones []hemi.L2Keystone `json:"keystones"`
	Error       *protocol.Error   `json:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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