Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TxHex ¶
type TxHex string
TxHex is a hex representation of a transaction.
func (TxHex) Format ¶
func (h TxHex) Format() TxHexFormat
Format returns the name of the format of the transaction hex.
func (TxHex) ToBEEFTransaction ¶
func (h TxHex) ToBEEFTransaction() (*transaction.Transaction, error)
ToBEEFTransaction converts the transaction hex to a BEEF transaction.
func (TxHex) ToRawTransaction ¶
func (h TxHex) ToRawTransaction() (*transaction.Transaction, error)
ToRawTransaction converts the transaction hex to a raw transaction.
type TxHexFormat ¶
type TxHexFormat string
TxHexFormat is the format type of the transaction hex.
const ( // TxHexFormatBEEF is the BEEF format of the transaction hex. TxHexFormatBEEF TxHexFormat = "BEEF" // TxHexFormatRAW is the Raw Tx format of the transaction hex. TxHexFormatRAW TxHexFormat = "RAW" )
func ParseTxHexFormat ¶
func ParseTxHexFormat(s string) (TxHexFormat, error)
ParseTxHexFormat takes the transaction hex format name (case insensitive) and returns TxHexFormat for that name.
Click to show internal directories.
Click to hide internal directories.