Documentation ¶
Index ¶
- Variables
- func GetSupportedNetworkNames() []string
- func NewArbitrumMainnet() *arbitrumMainnet
- func NewAvalanche() *avalanche
- func NewBSCMainnet() *bscMainnet
- func NewBSCTestnet() *bscTestnet
- func NewBaseMainnet() *baseMainnet
- func NewBitfiTestnet() *bitfiTestnet
- func NewBttcMainnet() *bttcMainnet
- func NewEthereumMainnet() *ethereumMainnet
- func NewEthereumPOW() *ethereumPOW
- func NewFantom() *fantom
- func NewKovan() *kovan
- func NewMatic() *matic
- func NewMumbai() *mumbai
- func NewOptimismMainnet() *optimismMainnet
- func NewPolygonZkevmMainnet() *polygonZkevmMainnet
- func NewRinkeby() *rinkeby
- func NewRopsten() *ropsten
- func NewScrollMainnet() *scrollMainnet
- func NewTomoMainnet() *tomoMainnet
- func NewlineaMainnet() *lineaMainnet
- type Network
Constants ¶
This section is empty.
Variables ¶
View Source
var BitfiTestnet = NewBitfiTestnet()
Functions ¶
func GetSupportedNetworkNames ¶
func GetSupportedNetworkNames() []string
func NewArbitrumMainnet ¶ added in v0.0.23
func NewArbitrumMainnet() *arbitrumMainnet
func NewAvalanche ¶ added in v0.0.21
func NewAvalanche() *avalanche
func NewBSCMainnet ¶
func NewBSCMainnet() *bscMainnet
func NewBSCTestnet ¶
func NewBSCTestnet() *bscTestnet
func NewBaseMainnet ¶ added in v0.0.30
func NewBaseMainnet() *baseMainnet
func NewBitfiTestnet ¶ added in v0.0.31
func NewBitfiTestnet() *bitfiTestnet
func NewBttcMainnet ¶ added in v0.0.23
func NewBttcMainnet() *bttcMainnet
func NewEthereumMainnet ¶
func NewEthereumMainnet() *ethereumMainnet
func NewEthereumPOW ¶ added in v0.0.25
func NewEthereumPOW() *ethereumPOW
func NewOptimismMainnet ¶ added in v0.0.23
func NewOptimismMainnet() *optimismMainnet
func NewPolygonZkevmMainnet ¶ added in v0.0.30
func NewPolygonZkevmMainnet() *polygonZkevmMainnet
func NewRinkeby ¶
func NewRinkeby() *rinkeby
func NewRopsten ¶
func NewRopsten() *ropsten
func NewScrollMainnet ¶ added in v0.0.30
func NewScrollMainnet() *scrollMainnet
func NewTomoMainnet ¶
func NewTomoMainnet() *tomoMainnet
func NewlineaMainnet ¶ added in v0.0.30
func NewlineaMainnet() *lineaMainnet
Types ¶
type Network ¶
type Network interface { GetName() string GetChainID() uint64 GetAlternativeNames() []string GetNativeTokenSymbol() string GetNativeTokenDecimal() uint64 GetBlockTime() time.Duration // in second GetNodeVariableName() string GetDefaultNodes() map[string]string GetBlockExplorerAPIKeyVariableName() string GetBlockExplorerAPIURL() string RecommendedGasPrice() (float64, error) GetABIString(address string) (string, error) // this interface can return "" in case // there is no multicall contract on the network MultiCallContract() string }
var ArbitrumMainnet Network = NewArbitrumMainnet()
var Avalanche Network = NewAvalanche()
var BSCMainnet Network = NewBSCMainnet()
var BSCTestnet Network = NewBSCTestnet()
var BaseMainnet Network = NewBaseMainnet()
var BttcMainnet Network = NewBttcMainnet()
var EthereumMainnet Network = NewEthereumMainnet()
var EthereumPOW Network = NewEthereumPOW()
var LineaMainnet Network = NewlineaMainnet()
var OptimismMainnet Network = NewOptimismMainnet()
var PolygonZkevmMainnet Network = NewPolygonZkevmMainnet()
var Rinkeby Network = NewRinkeby()
var Ropsten Network = NewRopsten()
var ScrollMainnet Network = NewScrollMainnet()
var TomoMainnet Network = NewTomoMainnet()
func GetNetwork ¶
func GetNetworkByID ¶ added in v0.0.30
func GetSupportedNetworks ¶
func GetSupportedNetworks() []Network
Source Files ¶
Click to show internal directories.
Click to hide internal directories.