interfaces

package
v0.0.0-...-4e8033b Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	GetBlock(blockHeight string) (transaction.Block, error)
	GetTransaction(transactionId string) (transaction.Transaction, error)
	ListBlocks(transactionID string) ([]transaction.Block, error)
	ListOutputs(pubKey string, spent bool) ([]transaction.OutputLocation, error)
	ListTransactions(assetID, operation string) ([]transaction.Transaction, error)
	ListVotes(blockID string) (interface{}, error)
	PostTransaction(txn transaction.Transaction, mode string) (transaction.Transaction, error)
	SearchAsset(search string, limit int) ([]transaction.Asset, error)
	SearchMetadata(search string, limit int) ([]transaction.Metadata, error)
}

type Transaction

type Transaction interface {
	New(operation string,
		asset transaction.Asset,
		metadata transaction.Metadata,
		inputs []transaction.Input,
		outputs []transaction.Output,
	) (*transaction.Transaction, error)
	NewCreateTransaction(
		asset transaction.Asset,
		metadata transaction.Metadata,
		outputs []transaction.Output,
		issuers []string,
	) (*transaction.Transaction, error)

	Sign(keyPairs []client.KeyPair) error
}

Jump to

Keyboard shortcuts

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