bsv

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: MIT Imports: 4 Imported by: 0

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) IsBEEF

func (h TxHex) IsBEEF() bool

IsBEEF checks if the transaction hex is a BEEF hex.

func (TxHex) IsRawTx

func (h TxHex) IsRawTx() bool

IsRawTx checks if the transaction hex is a raw 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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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