explorer

package
v0.1.23 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package explorer serves a small read-only web view of the chain: recent blocks, block detail, address balances and a JSON status API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PeerCounter

type PeerCounter interface{ PeerCount() int }

PeerCounter reports how many peers the node currently has.

type Server

type Server struct {
	// contains filtered or unexported fields
}

func New

func New(chain *core.Chain, peers PeerCounter) (*Server, error)

func (*Server) Handler added in v0.1.20

func (s *Server) Handler() http.Handler

Handler returns the stable HTTP handler used by Serve.

func (*Server) Serve

func (s *Server) Serve(addr string) error

Serve blocks, listening on addr.

Jump to

Keyboard shortcuts

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