Documentation ¶
Index ¶
- Constants
- func NewAddress(eventChannel chan interface{}, db *sqlx.DB, context *gin.Context, ...) (err error)
- func PayOnChain(db *sqlx.DB, req PayOnChainRequest) (r string, err error)
- func RegisterOnChainTxsRoutes(r *gin.RouterGroup, db *sqlx.DB)
- type NewAddressRequest
- type NewAddressResponse
- type PayOnChainRequest
- type PayOnChainResponse
- type Transaction
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func NewAddress ¶ added in v0.8.19
func PayOnChain ¶ added in v0.9.0
func PayOnChain(db *sqlx.DB, req PayOnChainRequest) (r string, err error)
func RegisterOnChainTxsRoutes ¶
func RegisterOnChainTxsRoutes(r *gin.RouterGroup, db *sqlx.DB)
Types ¶
type NewAddressRequest ¶ added in v0.8.19
type NewAddressResponse ¶ added in v0.8.19
type PayOnChainRequest ¶ added in v0.9.0
type PayOnChainRequest struct { NodeId int `json:"nodeId"` Address string `json:"address"` AmountSat int64 `json:"amountSat"` TargetConf *int32 `json:"targetConf"` SatPerVbyte *uint64 `json:"satPerVbyte"` SendAll *bool `json:"sendAll"` Label *string `json:"label"` MinConfs *int32 `json:"minConfs"` SpendUnconfirmed *bool `json:"spendUnconfirmed"` }
type PayOnChainResponse ¶ added in v0.9.0
type PayOnChainResponse struct {
TxId string `json:"txId"`
}
type Transaction ¶
type Transaction struct { Date time.Time `json:"date" db:"date"` TxHash string `json:"txHash" db:"tx_hash"` DestAddresses pq.StringArray `json:"destAddresses" db:"dest_addresses"` DestAddressesCount string `json:"destAddressesCount" db:"dest_addresses_count"` AmountMsat int64 `json:"amount" db:"amount"` TotalFeesMsat int64 `json:"totalFees" db:"total_fees"` Label *string `json:"label" db:"label"` LndTxTypeLabel *string `json:"lndTxTypeLabel" db:"lnd_tx_type_label"` LndShortChannelId *string `json:"lndShortChanId" db:"lnd_short_chan_id"` }
Click to show internal directories.
Click to hide internal directories.