opreturn

package
v1.0.0-beta.40 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataType

type DataType int

DataType represents the type of data in the OP_RETURN output.

const (
	DataTypeDefault DataType = iota
	DataTypeStrings
	DataTypeHexes
)

Enum values for DataType

func (DataType) MarshalJSON

func (d DataType) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaler for DataType Enum

func (*DataType) UnmarshalJSON

func (d *DataType) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaler for DataTypeEnum

type Output

type Output struct {
	DataType DataType `json:"dataType,omitempty"`
	Data     []string `json:"data"`
}

Output is a struct that represents the output containing OP_RETURN script

func (Output) GetType

func (o Output) GetType() string

GetType returns the string typename of the output

Jump to

Keyboard shortcuts

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