Documentation ¶
Index ¶
- Constants
- func GetAcceptedTransactionIDsByBlockHashHandler(blockHash string) ([]string, error)
- func GetBlockByHashHandler(blockHash string) (interface{}, error)
- func GetBlocksHandler(order string, skip uint64, limit uint64) (interface{}, error)
- func GetFeeEstimatesHandler() (interface{}, error)
- func GetTransactionByHashHandler(txHash string) (interface{}, error)
- func GetTransactionByIDHandler(txID string) (interface{}, error)
- func GetTransactionsByAddressHandler(address string, skip uint64, limit uint64) (interface{}, error)
- func GetTransactionsByIDsHandler(transactionIds []string) ([]*apimodels.TransactionResponse, error)
- func GetUTXOsByAddressHandler(address string) (interface{}, error)
- func PostTransaction(requestBody []byte) error
Constants ¶
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 ¶
GetAcceptedTransactionIDsByBlockHashHandler returns an array of transaction IDs for a given block hash
func GetBlockByHashHandler ¶
GetBlockByHashHandler returns a block by a given hash.
func GetBlocksHandler ¶
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 ¶
GetTransactionByHashHandler returns a transaction by a given transaction hash.
func GetTransactionByIDHandler ¶
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 ¶
GetUTXOsByAddressHandler searches for all UTXOs that belong to a certain address.
func PostTransaction ¶
PostTransaction forwards a raw transaction to the JSON-RPC API server
Types ¶
This section is empty.