Documentation
¶
Index ¶
Constants ¶
View Source
const ( StatusNotExtendedFormat = 460 StatusFeeTooLow = 465 StatusCumulativeFeeValidationFailed = 473 )
Custom ARC defined http status codes
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FeeAmount ¶
FeeAmount indicating how many satoshis are paid for the given number of bytes in the transaction.
type Policy ¶
type Policy struct { Content PolicyContent `json:"policy"` Timestamp time.Time `json:"timestamp"` }
Policy is the policy model returned from ARC
type PolicyContent ¶
type PolicyContent struct { MaxScriptSizePolicy int `json:"maxscriptsizepolicy"` MaxTXSigOPSCountsPolicy int64 `json:"maxtxsigopscountspolicy"` MaxTXSizePolicy int `json:"maxtxsizepolicy"` MiningFee FeeAmount `json:"miningFee"` }
PolicyContent is the actual policy values returned from ARC
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service for arc requests.
func NewARCService ¶
func NewARCService(logger zerolog.Logger, httpClient *resty.Client, arcCfg chainmodels.ARCConfig) *Service
NewARCService creates a new arc service.
func (*Service) Broadcast ¶
Broadcast submits a transaction to the ARC server and returns the transaction info.
Click to show internal directories.
Click to hide internal directories.