Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithEndpoint ¶ added in v0.10.0
WithEndpoint returns an option to set the RPC endpoint for the given chain name or chain ID.
func WithInfuraENV ¶ added in v0.10.0
func WithInfuraENV(keyVar string) option
WithInfuraENV returns an option using the provided ENV VAR as infura API key for all xchains.
func WithPublicRPCs ¶ added in v0.10.0
func WithPublicRPCs() option
WithPublicRPCs returns an option using well known public free RPCs for all xchains. This is used be default if no other option is provided.
Types ¶
type Connector ¶
type Connector struct { Network netconf.Network XProvider xchain.Provider CProvider cchain.Provider EthClients map[uint64]ethclient.Client CmtCl rpcclient.Client }
Connector provider a simple abstraction to connect to the Omni network.
Click to show internal directories.
Click to hide internal directories.