controllers

package
v0.5.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2020 License: ISC Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBlockByHashHandler

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

GetBlockByHashHandler returns a block by a given hash.

func GetBlockCountHandler

func GetBlockCountHandler() (interface{}, error)

GetBlockCountHandler returns the total number of blocks.

func GetBlocksHandler

func GetBlocksHandler(orderString string, skip, limit int64) (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 GetTransactionCountByAddressHandler

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

GetTransactionCountByAddressHandler returns the total number of transactions by address.

func GetTransactionsByAddressHandler

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

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

func GetTransactionsByBlockHashHandler

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

GetTransactionsByBlockHashHandler retrieves all transactions included by the block with the given blockHash.

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