Documentation ¶
Index ¶
- func GetAddresses(s svc.AddressesService) gin.HandlerFunc
- func GetBlock(s svc.BlocksService) gin.HandlerFunc
- func GetFees(s svc.ExplorerService) gin.HandlerFunc
- func GetHealth(s svc.ExplorerService) gin.HandlerFunc
- func GetNetwork(s svc.ExplorerService) gin.HandlerFunc
- func GetStatus(s svc.ExplorerService) gin.HandlerFunc
- func GetTimestamp() gin.HandlerFunc
- func GetTransactionHex(s svc.TransactionsService) gin.HandlerFunc
- func HasDescriptor(s svc.ControlService) gin.HandlerFunc
- func ImportAccounts(s svc.ControlService) gin.HandlerFunc
- func SendTransaction(s svc.TransactionsService) gin.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAddresses ¶
func GetAddresses(s svc.AddressesService) gin.HandlerFunc
func GetBlock ¶
func GetBlock(s svc.BlocksService) gin.HandlerFunc
GetBlock gets the current block, or a block by height or hash. Examples:
- current -> get number of blocks in longest blockchain
- 0xdeadbeef -> get block(s) by hash
- 626553 -> get block(s) by height
Except for the case where the block reference is "current", the response is a list of 1 element.
func GetFees ¶
func GetFees(s svc.ExplorerService) gin.HandlerFunc
func GetHealth ¶
func GetHealth(s svc.ExplorerService) gin.HandlerFunc
func GetNetwork ¶ added in v0.13.0
func GetNetwork(s svc.ExplorerService) gin.HandlerFunc
func GetStatus ¶
func GetStatus(s svc.ExplorerService) gin.HandlerFunc
func GetTimestamp ¶
func GetTimestamp() gin.HandlerFunc
func GetTransactionHex ¶
func GetTransactionHex(s svc.TransactionsService) gin.HandlerFunc
GetTransactionHex is a gin handler (factory) to query transaction hex by hash parameter.
func HasDescriptor ¶
func HasDescriptor(s svc.ControlService) gin.HandlerFunc
func ImportAccounts ¶
func ImportAccounts(s svc.ControlService) gin.HandlerFunc
func SendTransaction ¶
func SendTransaction(s svc.TransactionsService) gin.HandlerFunc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.