chain

package
v1.0.0-beta.37 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ARCService

type ARCService interface {
	QueryTransaction(ctx context.Context, txID string) (*chainmodels.TXInfo, error)
	GetFeeUnit(ctx context.Context) (*bsv.FeeUnit, error)
	Broadcast(ctx context.Context, tx *sdk.Transaction) (*chainmodels.TXInfo, error)
}

ARCService for querying ARC server.

type BHSService

type BHSService interface {
	GetMerkleRoots(ctx context.Context, query url.Values) (*models.MerkleRootsBHSResponse, error)
	VerifyMerkleRoots(ctx context.Context, merkleRoots []*spv.MerkleRootConfirmationRequestItem) (bool, error)
	HealthcheckBHS(ctx context.Context) error
}

BHSService for querying BHS server.

type Service

type Service interface {
	ARCService
	BHSService
}

Service related to the chain.

func NewChainService

func NewChainService(logger zerolog.Logger, httpClient *resty.Client, arcCfg chainmodels.ARCConfig, bhsConf chainmodels.BHSConfig) Service

NewChainService creates a new chain service.

Directories

Path Synopsis
arc
bhs
ef

Jump to

Keyboard shortcuts

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