Documentation ¶
Index ¶
- Constants
- func NewAddress(wChan 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 { LocalNodeId int `json:"localNodeId"` 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:"tx_hash" db:"tx_hash"` DestAddresses pq.StringArray `json:"dest_addresses" db:"dest_addresses"` DestAddressesCount string `json:"dest_addresses_count" db:"dest_addresses_count"` AmountMsat int64 `json:"amount" db:"amount"` TotalFeesMsat int64 `json:"total_fees" db:"total_fees"` Label *string `json:"label" db:"label"` LndTxTypeLabel *string `json:"lnd_tx_type_label" db:"lnd_tx_type_label"` LndShortChannelId *string `json:"lnd_short_chan_id" db:"lnd_short_chan_id"` }
Click to show internal directories.
Click to hide internal directories.