on_chain_tx

package
v0.16.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Unknown int32 = 0
	P2WPKH  int32 = 1
	P2WKH   int32 = 2
	NP2WKH  int32 = 3
	P2TR    int32 = 4
)

Variables

This section is empty.

Functions

func NewAddress added in v0.8.19

func NewAddress(
	eventChannel chan interface{},
	db *sqlx.DB,
	context *gin.Context,
	newAddressRequest commons.NewAddressRequest,
	requestId string,
) (err error)

func PayOnChain added in v0.9.0

func PayOnChain(db *sqlx.DB, req commons.PayOnChainRequest) (r string, err error)

func RegisterOnChainTxsRoutes

func RegisterOnChainTxsRoutes(r *gin.RouterGroup, db *sqlx.DB)

Types

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL