controllers

package
v0.1.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: ISC Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OrderAscending is parameter that can be used
	// in a get list handler to get a list ordered
	// in an ascending order.
	OrderAscending = "asc"

	// OrderDescending is parameter that can be used
	// in a get list handler to get a list ordered
	// in an ascending order.
	OrderDescending = "desc"
)

Variables

This section is empty.

Functions

func GetAcceptedTransactionIDsByBlockHashHandler

func GetAcceptedTransactionIDsByBlockHashHandler(blockHash string) ([]string, error)

GetAcceptedTransactionIDsByBlockHashHandler returns an array of transaction IDs for a given block hash

func GetBlockByHashHandler

func GetBlockByHashHandler(blockHash string) (interface{}, error)

GetBlockByHashHandler returns a block by a given hash.

func GetBlocksHandler

func GetBlocksHandler(order string, skip uint64, limit uint64) (interface{}, error)

GetBlocksHandler searches for all blocks

func GetFeeEstimatesHandler

func GetFeeEstimatesHandler() (interface{}, error)

GetFeeEstimatesHandler returns the fee estimates for different priorities for accepting a transaction in the DAG.

func GetTransactionByHashHandler

func GetTransactionByHashHandler(txHash string) (interface{}, error)

GetTransactionByHashHandler returns a transaction by a given transaction hash.

func GetTransactionByIDHandler

func GetTransactionByIDHandler(txID string) (interface{}, error)

GetTransactionByIDHandler returns a transaction by a given transaction ID.

func GetTransactionsByAddressHandler

func GetTransactionsByAddressHandler(address string, skip uint64, limit uint64) (interface{}, error)

GetTransactionsByAddressHandler searches for all transactions where the given address is either an input or an output.

func GetTransactionsByIDsHandler

func GetTransactionsByIDsHandler(transactionIds []string) ([]*apimodels.TransactionResponse, error)

GetTransactionsByIDsHandler finds transactions by the given transactionIds.

func GetUTXOsByAddressHandler

func GetUTXOsByAddressHandler(address string) (interface{}, error)

GetUTXOsByAddressHandler searches for all UTXOs that belong to a certain address.

func PostTransaction

func PostTransaction(requestBody []byte) error

PostTransaction forwards a raw transaction to the JSON-RPC API server

Types

This section is empty.

Jump to

Keyboard shortcuts

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