networks

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// For Ethereum
	Ethereum string = "https://cloudflare-eth.com"

	// For Goerli Testnet
	Goerli string = "https://goerli.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161"

	// For Binance Smart Chain (BSC)
	BinanceSmartChain string = "https://bsc-dataseed.binance.org"

	// For Polygon
	Polygon string = "https://polygon-rpc.com"

	// For Optimism
	Optimisim string = "https://mainnet.optimism.io"

	// For Arbitrum
	Arbitrum string = "https://arb1.arbitrum.io/rpc"
)

Variables

This section is empty.

Functions

func GetRpcURLByChainID

func GetRpcURLByChainID(chainID uint64) (string, error)

GetRpcURLByChainID returns the RPC url for the given chain id

Types

This section is empty.

Jump to

Keyboard shortcuts

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