draft

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	Create(ctx context.Context, spec *TransactionSpec) (*Transaction, error)
}

Service is a service for creating draft transactions.

func NewDraftService

func NewDraftService(paymailService paymail.ServiceClient, paymailAddressService paymailaddress.Service, logger zerolog.Logger) Service

NewDraftService creates a new draft service.

type Transaction

type Transaction struct {
	BEEF        string
	Annotations *transaction.Annotations
}

Transaction represents a transaction draft.

type TransactionSpec

type TransactionSpec struct {
	Outputs *outputs.Specifications
	XPubID  string
}

TransactionSpec represents client provided specification for a transaction draft.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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