controllers

package
v1.2.3-testnet Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2019 License: ISC Imports: 13 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 GetBlockByHashHandler

func GetBlockByHashHandler(blockHash string) (interface{}, *utils.HandlerError)

GetBlockByHashHandler returns a block by a given hash.

func GetBlocksHandler

func GetBlocksHandler(order string, skip uint64, limit uint64) (interface{}, *utils.HandlerError)

GetBlocksHandler searches for all blocks

func GetFeeEstimatesHandler

func GetFeeEstimatesHandler() (interface{}, *utils.HandlerError)

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

func GetTransactionByHashHandler

func GetTransactionByHashHandler(txHash string) (interface{}, *utils.HandlerError)

GetTransactionByHashHandler returns a transaction by a given transaction hash.

func GetTransactionByIDHandler

func GetTransactionByIDHandler(txID string) (interface{}, *utils.HandlerError)

GetTransactionByIDHandler returns a transaction by a given transaction ID.

func GetTransactionsByAddressHandler

func GetTransactionsByAddressHandler(address string, skip uint64, limit uint64) (interface{}, *utils.HandlerError)

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

func GetUTXOsByAddressHandler

func GetUTXOsByAddressHandler(address string) (interface{}, *utils.HandlerError)

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

func PostTransaction

func PostTransaction(requestBody []byte) *utils.HandlerError

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

Types

type RawTransaction

type RawTransaction struct {
	RawTransaction string `json:"rawTransaction"`
}

RawTransaction represents a raw transaction posted to the API server

Jump to

Keyboard shortcuts

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