explorer

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(lggr logger.Logger, apiClient *ton.APIClient, net string, verbose bool, pageSize uint32, maxPages uint32) (*client, error)

Connect establishes a connection to the specified TON network and returns an explorer instance for tracing transactions.

Parameters: - net: The TON network to connect to (e.g., "mainnet", "testnet", "mylocalton", "http://127.0.0.1:8000/localhost.global.config.json"). - verbose: Whether to enable verbose output. - pageSize: The number of transactions to fetch per page. - maxPages: The maximum number of pages to fetch.

func GenerateExplorerCmd

func GenerateExplorerCmd(lggr *logger.Logger, contracts map[string]debug.TypeAndVersion, client *ton.APIClient) *cobra.Command

func ParseURL

func ParseURL(urlStr string) (txHash, address, network string, err error)

ParseURL extracts transaction hash and network from tonscan URL Supports tonscan.org and mylocalton explorer URL formats

func TONConnect

func TONConnect(lggr logger.Logger, apiClient *ton.APIClient, net string, verbose bool, pageSize uint32, maxPages uint32) (*ton.APIClient, error)

Types

type ContainerInspect

type ContainerInspect struct {
	ID    string `json:"Id"`
	State struct {
		Running bool `json:"Running"`
	} `json:"State"`
	Config struct {
		Image string `json:"Image"`
	} `json:"Config"`
	NetworkSettings struct {
		Ports map[string][]struct {
			HostIP   string `json:"HostIp"`
			HostPort string `json:"HostPort"`
		} `json:"Ports"`
	} `json:"NetworkSettings"`
}

ContainerInspect represents the structure returned by docker inspect

type Format

type Format int
const (
	FormatTree Format = iota
	FormatSequenceURL
	FormatSequenceRaw
)

Jump to

Keyboard shortcuts

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