Back to

Package api

Latest Go to latest

The highest tagged major version is .

Published: May 8, 2020 | License: MIT | Module:



const MaxBlocksInRange = 300

func BadRequest

func BadRequest(c *gin.Context, err error)

func Error

func Error(c *gin.Context, err error)

func NotFound

func NotFound(c *gin.Context)

func OK

func OK(c *gin.Context, data interface{}, meta ...interface{})

type API

type API struct {
	// contains filtered or unexported fields

func New

func New(core *core.Core, config Config) *API

func (*API) AccountBalanceHandler

func (a *API) AccountBalanceHandler(c *gin.Context)

func (*API) AccountCodeHandler

func (a *API) AccountCodeHandler(c *gin.Context)

func (*API) AccountTxsHandler

func (a *API) AccountTxsHandler(c *gin.Context)

func (*API) BlockHandler

func (a *API) BlockHandler(c *gin.Context)

func (*API) BlockRangeHandler

func (a *API) BlockRangeHandler(c *gin.Context)

func (*API) Close

func (a *API) Close()

func (*API) Run

func (a *API) Run()

func (*API) SearchHandler

func (a *API) SearchHandler(c *gin.Context)

func (*API) TxDetailsHandler

func (a *API) TxDetailsHandler(c *gin.Context)

func (*API) TxLogEntriesHandler

func (a *API) TxLogEntriesHandler(c *gin.Context)

func (*API) UncleDetailsHandler

func (a *API) UncleDetailsHandler(c *gin.Context)

type Config

type Config struct {
	Port           string
	DevCorsEnabled bool
	DevCorsHost    string
	EthClientURL   string

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier