transaction

package
v1.0.0-beta.35 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 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 AnnotatedTransaction

type AnnotatedTransaction struct {
	// BEEF is the transaction hex in BEEF format.
	BEEF string `json:"beef"`
	// Annotations is the metadata for the transaction.
	Annotations *Annotations `json:"annotations"`
}

AnnotatedTransaction represents a transaction with annotations.

type Annotations

type Annotations struct {
	Outputs map[int]*OutputAnnotation `json:"outputs"`
}

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

type OutputAnnotation

type OutputAnnotation struct {
	// What type of bucket should this output be stored in.
	Bucket bucket.Name `json:"bucket"`
	// Paymail is available if the output is the paymail output.
	Paymail optional.Param[PaymailAnnotation] `json:"paymail,omitempty"`
}

OutputAnnotation represents the metadata for the output.

type PaymailAnnotation

type PaymailAnnotation struct {
	// Receiver is the paymail address of the receiver.
	Receiver string `json:"receiver"`
	// Reference is the reference number used for paymail transaction.
	Reference string `json:"reference"`
	// Sender is the paymail address of the sender.
	Sender string `json:"sender"`
}

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