Documentation
¶
Index ¶
- Variables
- func CheckTransaction(transactionHex, lockupAddress string, amt int64) (string, error)
- func ClaimFee(claimAddress string, feePerKw int64) (int64, error)
- func ClaimTransaction(redeemScript, transactionHex string, claimAddress string, preimage, key string, ...) (string, error)
- func GetNodePubkey() (string, error)
- func GetTransaction(id, lockupAddress string, amt int64) (status, txid, tx string, eta int, err error)
- type BadRequestError
- type ReverseSwap
- type ReverseSwapInfo
- type RoutingHint
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSwapNotFound = errors.New("transaction not in mempool or settled/canceled")
Functions ¶
func CheckTransaction ¶
CheckTransaction checks that the transaction corresponds to the adresss and amount
func ClaimTransaction ¶
func ClaimTransaction( redeemScript, transactionHex string, claimAddress string, preimage, key string, fees int64, ) (string, error)
ClaimTransaction returns the claim transaction to broadcast after sending it also to boltz
func GetNodePubkey ¶
Types ¶
type BadRequestError ¶
type BadRequestError string
func (*BadRequestError) Error ¶
func (e *BadRequestError) Error() string
type ReverseSwap ¶
func NewReverseSwap ¶
NewReverseSwap begins the reverse submarine process.
type ReverseSwapInfo ¶
type ReverseSwapInfo struct {
FeesHash string
Max int64
Min int64
Fees struct {
Percentage float64
Lockup int64
Claim int64
}
}
func GetReverseSwapInfo ¶
func GetReverseSwapInfo() (*ReverseSwapInfo, error)
type RoutingHint ¶
type RoutingHint struct {
HopHintsList []struct {
NodeID string `json:"nodeId"`
ChanID string `json:"chanId"`
FeeBaseMsat uint32 `json:"feeBaseMsat"`
FeeProportionalMillionths uint32 `json:"feeProportionalMillionths"`
CltvExpiryDelta uint32 `json:"cltvExpiryDelta"`
} `json:"hopHintsList"`
}
func GetRoutingHints ¶
func GetRoutingHints(routingNode []byte) ([]RoutingHint, error)
Click to show internal directories.
Click to hide internal directories.