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.
Click to show internal directories.
Click to hide internal directories.