protocol

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: BSD-2-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrDecodeHex indicates the transaction hex could not be decoded.
	ErrDecodeHex = errors.New("failed to decode hex")

	// ErrMsgTxDeserialize indicates that the parser could not process the
	// serialized hex to wire.MsgTx.
	ErrMsgTxDeserialize = errors.New("failed to deserialize to MsgTx")
)

Functions

func DecodeMsgTx

func DecodeMsgTx(msgTx *wire.MsgTx, params *chaincfg.Params) *types.Transaction

func DecodeRawTransaction

func DecodeRawTransaction(txnHex string, params *chaincfg.Params) (*types.Transaction, error)

func ParseVerboseTransaction

func ParseVerboseTransaction(txRaw *btcjson.TxRawResult) *types.Transaction

Types

This section is empty.

Jump to

Keyboard shortcuts

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