parser

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: AGPL-3.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

View Source
const (
	ProtocolID     string = "6f7264"
	BodyTag        string = "00"
	ContentTypeTag string = "01"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type InscriptionContent

type InscriptionContent struct {
	ContentType             []byte
	ContentBody             []byte
	ContentLength           uint64
	IsUnrecognizedEvenField bool
}

func ParseInscriptions

func ParseInscriptions(witnessScript []byte) []*InscriptionContent

type TransactionInscription

type TransactionInscription struct {
	Inscription *InscriptionContent
	TxInIndex   uint32
	TxInOffset  uint64
}

func ParseInscriptionsFromTransaction

func ParseInscriptionsFromTransaction(msgTx *wire.MsgTx) []*TransactionInscription

Jump to

Keyboard shortcuts

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