transaction

package
v1.0.0-beta.30 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Annotations

type Annotations struct {
	Outputs OutputsAnnotations
}

Annotations represents a transaction metadata that will be used by server to properly handle given transaction.

type Bucket

type Bucket string

Bucket represents the UTXO bucket where the output belongs to.

const (
	// BucketData represents the bucket for the data only outputs.
	BucketData Bucket = "data"
	// BucketBSV represents the bucket for the BSV outputs.
	BucketBSV Bucket = "bsv"
)

type OutputAnnotation

type OutputAnnotation struct {
	// What type of bucket should this output be stored in.
	Bucket Bucket
	// Paymail is available if the output is the paymail output.
	Paymail *PaymailAnnotation
}

OutputAnnotation represents the metadata for the output.

func NewDataOutputAnnotation

func NewDataOutputAnnotation() *OutputAnnotation

NewDataOutputAnnotation constructs a new OutputAnnotation for the data output.

type OutputsAnnotations

type OutputsAnnotations map[int]*OutputAnnotation

OutputsAnnotations represents the metadata for chosen outputs. The key is the index of the output.

type PaymailAnnotation

type PaymailAnnotation struct {
	Receiver  string
	Reference string
	Sender    string
}

PaymailAnnotation is the metadata for the paymail output.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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