transaction

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SignEnvelope

func SignEnvelope(envelope *xdr.TransactionEnvelope, network build.Network, seed string) (*xdr.TransactionEnvelope, error)

SignEnvelope signs a transaction envelope with the specified seed and network passphrase.

func StreamTransactions

func StreamTransactions(ctx context.Context, hClient horizonclient.ClientInterface, notifiers ...Notifier)

StreamTransactions streams transactions from horizon, notifying the provided notifiers with received transactions.

Types

type Notifier

type Notifier interface {
	OnTransaction(XDRData)
}

Notifier notifies that a new transaction has been confirmed on the blockchain.

type XDRData

type XDRData struct {
	Envelope xdr.TransactionEnvelope
	Result   xdr.TransactionResult
	Meta     xdr.TransactionMeta
}

Directories

Path Synopsis
ingestion/dynamodb/committer
Package dynamodb implements a dynamodb backed ingestion.Committer.
Package dynamodb implements a dynamodb backed ingestion.Committer.

Jump to

Keyboard shortcuts

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