chains

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainCurrency

type ChainCurrency struct {
	Name     string `json:"name"`
	Symbol   string `json:"symbol"`
	Decimals int    `json:"decimals"`
}

type ChainENS

type ChainENS struct {
	Registry string `json:"registry"`
}

type ChainExplorer

type ChainExplorer struct {
	Name     string `json:"name"`
	URL      string `json:"url"`
	Standard string `json:"standard"` // EIP3091
}

type ChainFeature

type ChainFeature struct {
	Name string `json:"name"`
}

type ChainInfo

type ChainInfo struct {
	Name           string           `json:"name"`
	Chain          string           `json:"chain"`
	Icon           string           `json:"icon"`
	RPC            []string         `json:"rpc"`
	Features       []*ChainFeature  `json:"features"`
	Faucets        []string         `json:"faucets"`
	NativeCurrency *ChainCurrency   `json:"nativeCurrency"`
	InfoURL        string           `json:"infoURL"`
	ShortName      string           `json:"shortName"`
	ChainId        uint64           `json:"chainId"`
	NetworkId      uint64           `json:"networkId"`
	Slip44         int              `json:"slip44,omitempty"`
	ENS            *ChainENS        `json:"ens"`
	Explorers      []*ChainExplorer `json:"explorers"`
}

func Get

func Get(id uint64) *ChainInfo

func (*ChainInfo) ExplorerURL

func (ci *ChainInfo) ExplorerURL() string

func (*ChainInfo) HasFeature

func (ci *ChainInfo) HasFeature(feat string) bool

func (*ChainInfo) TransactionUrl

func (ci *ChainInfo) TransactionUrl(txHash string) string

Jump to

Keyboard shortcuts

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