Documentation
¶
Index ¶
Constants ¶
View Source
const ( ConnectionTypeDirect = iota ConnectionTypeManaged )
Variables ¶
View Source
var ConnectionTypes = []ConnectionType{ConnectionTypeDirect, ConnectionTypeManaged}
Functions ¶
func SanitizeVersion ¶
Types ¶
type ClientProfile ¶
type ClientProfile struct { Id string `json:"id"` ConnectionType ConnectionType `json:"connectionType"` NetworkId uint64 `json:"networkId"` ChainId uint64 `json:"chainId"` ClientVersion web3.ClientVersion `json:"clientVersion"` NodeInfo *web3.NodeInfo `json:"nodeInfo,omitempty"` // unavailable from third party providers e.g. alchemy }
func (ClientProfile) String ¶
func (cp ClientProfile) String() string
type ClientStatus ¶
type ClientStatus struct { Id string `json:"id"` Head *web3.Head `json:"head,omitempty"` SyncStatus *web3.SyncStatus `json:"syncStatus,omitempty"` }
func (*ClientStatus) Merge ¶
func (cs *ClientStatus) Merge(src *ClientStatus) (*ClientStatus, error)
type ConnectionType ¶
type ConnectionType int
func ToConnectionType ¶
func ToConnectionType(s string) ConnectionType
func (ConnectionType) MarshalJSON ¶
func (ct ConnectionType) MarshalJSON() ([]byte, error)
MarshalJSON implements a custom json marshaller for ConnectionType.
func (ConnectionType) String ¶
func (ct ConnectionType) String() (result string)
func (*ConnectionType) UnmarshalJSON ¶
func (ct *ConnectionType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements a custom json unmarshaller for ConnectionType.
type NetworkAndChainId ¶
Click to show internal directories.
Click to hide internal directories.