chainexplorerdispatcher

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainExplorerDispatcher

type ChainExplorerDispatcher struct {
	RegistryExplorer map[ChainExplorerName]explorer.ChainExplorerAdaptor
}

func NewExplorerClient

func NewExplorerClient(cliConfigs []ExplorerClientConfig) (*ChainExplorerDispatcher, error)

func (*ChainExplorerDispatcher) GetAccountBalance

func (*ChainExplorerDispatcher) GetAccountUtxo

func (*ChainExplorerDispatcher) GetChainExplorer

func (*ChainExplorerDispatcher) GetEstimateGasFee

func (*ChainExplorerDispatcher) GetMultiAccountBalance

func (cea *ChainExplorerDispatcher) GetMultiAccountBalance(request *account.AccountBalanceRequest) ([]*account.AccountBalanceResponse, error)

func (*ChainExplorerDispatcher) GetTokenList

func (cea *ChainExplorerDispatcher) GetTokenList(request *token.TokenRequest) ([]token.TokenResponse, error)

func (*ChainExplorerDispatcher) GetTxByAddress

func (*ChainExplorerDispatcher) GetTxByHash

func (*ChainExplorerDispatcher) Interceptor

func (d *ChainExplorerDispatcher) Interceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (resp interface{}, err error)

type ChainExplorerName

type ChainExplorerName = string

type CommonRequest

type CommonRequest interface {
	GetChainExporerName() string
}

type ExplorerClientConfig

type ExplorerClientConfig struct {
	ExplorerName string
	Key          string
	BaseURL      string
	Verbose      bool
	Timeout      time.Duration
}

Jump to

Keyboard shortcuts

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