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.
Click to show internal directories.
Click to hide internal directories.