horizon

package
v0.0.0-...-d0dd730 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//Horizon server
	Horizon *horizon.Client
)

Functions

func BuildTransaction

func BuildTransaction(source string, signers []string, sequence uint64, mutators ...build.TransactionMutator) (string, error)

BuildTransaction creates a stellar transaction we use AutoSequence on the source, which is the user account mostly signer is the seed of the source

func DecodeFromBase64

func DecodeFromBase64(encodedXdr string) (*build.TransactionEnvelopeBuilder, error)

DecodeFromBase64 decodes the transaction from a base64 string into a TransactionEnvelopeBuilder

func InitHorizon

func InitHorizon(DB *dbc.DB, Cnf *config.Config) error

InitHorizon initializes the horizon configuration

func SubmitTransaction

func SubmitTransaction(o *m.UserOrder, transaction string, log *logrus.Entry, saveOrderTxLog bool) (hash string, resultString string, err error)

SubmitTransaction submits the transaction to the network and returns the hash if successfull if saveOrderTxLog is set, we will save a log in OrderTransactions, if not, we will return the result as a string

Types

This section is empty.

Jump to

Keyboard shortcuts

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