chains

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Buintin = []*Chain{
	local,
	eth,
	ethSepolia,
	ethHolesky,
	arbitrum,
	arbitrumSepolia,
	opMainnet,
	opSepolia,
	bscMainnet,
	bscTestnet,
	polygon,
	polygonMubai,
	base,
	baseSepolia,
	metis,
	metisSepolia,
}

Functions

This section is empty.

Types

type Chain

type Chain struct {
	Name     string   // chain name
	Id       uint64   // chain id
	Endpoint string   `json:",omitempty"` // the rpc endpoint, https and wss supported
	Explorer string   `json:",omitempty"` // explorer api full endpoint
	Alias    []string `json:",omitempty"` // name alias, e.g. the name of eth mainnet is eth, you can also add alias like eth-mainnet
}

func Get

func Get(n string) *Chain

Jump to

Keyboard shortcuts

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