on_chain_tx

package
v0.8.19 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func NewAddress added in v0.8.19

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

func RegisterOnChainTxsRoutes

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

Types

type NewAddressRequest added in v0.8.19

type NewAddressRequest struct {
	NodeId int   `json:"nodeId"`
	Type   int32 `json:"type"`
	//The name of the account to generate a new address for. If empty, the default wallet account is used.
	Account string `json:"account"`
}

type NewAddressResponse added in v0.8.19

type NewAddressResponse struct {
	ReqId   string `json:"reqId"`
	Type    string `json:"type"`
	Address string `json:"address"`
}

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

Jump to

Keyboard shortcuts

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