handlers

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

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 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.

Jump to

Keyboard shortcuts

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