Documentation ¶
Index ¶
- Constants
- func GetBlockByHashHandler(blockHash string) (interface{}, *utils.HandlerError)
- func GetBlocksHandler(order string, skip uint64, limit uint64) (interface{}, *utils.HandlerError)
- func GetFeeEstimatesHandler() (interface{}, *utils.HandlerError)
- func GetTransactionByHashHandler(txHash string) (interface{}, *utils.HandlerError)
- func GetTransactionByIDHandler(txID string) (interface{}, *utils.HandlerError)
- func GetTransactionsByAddressHandler(address string, skip uint64, limit uint64) (interface{}, *utils.HandlerError)
- func GetUTXOsByAddressHandler(address string) (interface{}, *utils.HandlerError)
- func PostTransaction(requestBody []byte) *utils.HandlerError
- type RawTransaction
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 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