etherscan

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler handles Etherscan-compatible API requests

func NewHandler

func NewHandler(store port.QueryStore, v verifier.Verifier, logger *zap.Logger) *Handler

NewHandler creates a new Etherscan API handler

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP handles incoming requests

type Response

type Response struct {
	Status  string      `json:"status"`  // "1" for success, "0" for error
	Message string      `json:"message"` // "OK" or error message
	Result  interface{} `json:"result"`
}

Response represents the Etherscan API response format

type VerificationJob

type VerificationJob struct {
	GUID      string
	Address   string
	Status    string // "Pending", "Pass", "Fail"
	Message   string
	CreatedAt time.Time
}

VerificationJob tracks the status of a verification request

Jump to

Keyboard shortcuts

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