Versions in this module Expand all Collapse all v0 v0.0.5 Jul 14, 2022 Changes in this version + func NetName(id int64) (string, error) + func NewSubscription(key string) *subscription + func ParseGas(msg *EthTxPayload) (gasBaseFeeGwei, gasTipGwei float64, err error) + type Account struct + Address string + type AddressSubscribe struct + func NewAddressSubscribe(msg BaseMessage, address string) AddressSubscribe + func NewAddressUnsubscribe(msg BaseMessage, address string) AddressSubscribe + type BaseMessage struct + CategoryCode string + DappID string + EventCode string + Timestamp time.Time + Version string + func NewBaseMessage(apiKey string, netID int64) (BaseMessage, error) + func NewBaseMessageMainnet(apiKey string) BaseMessage + type Blockchain struct + Network string + System string + type Client struct + func New(ctx context.Context, opts Opts) (*Client, error) + func (c *Client) APIKey() string + func (c *Client) Close() error + func (c *Client) Initialize(msg BaseMessage) error + func (c *Client) KillSubscription(key string) + func (c *Client) NewAddressSubscription(address string) error + func (c *Client) NewEventSubscription(msg Configuration) error + func (c *Client) NewTransactionSubscription(txHash string) error + func (c *Client) ReadJSON(out interface{}) error + func (c *Client) SubscriptionRegistry() map[string]Subscription + func (c *Client) WriteJSON(out interface{}) error + type Config struct + ABI interface{} + Filters []map[string]string + Scope string + WatchAddress bool + func NewConfig(scope string, watchAddress bool, abis interface{}) Config + type Configuration struct + func NewConfiguration(msg BaseMessage, config Config) Configuration + func NewEventUnsubscribe(msg BaseMessage, config Config) Configuration + type ConnectResponse struct + ConnectionID string + Reason string + ServerVersion string + ShowUX bool + Status string + Version int + type EthTxPayload struct + ConnectionID string + Event struct{ ... } + ServerVersion string + Status string + TimeStamp time.Time + Version int + type MsgHistory struct + func (mg *MsgHistory) Len() int + func (mg *MsgHistory) Pop() interface{} + func (mg *MsgHistory) PopAll() []interface{} + func (mg *MsgHistory) Push(msg interface{}) + type Opts struct + APIKey string + Host string + Path string + PrintConnectResponse bool + Scheme string + type Subscription interface + Err func() chan error + Events func() chan interface{} + Unsubscribe func() + type Transaction struct + Hash string + type TxSubscribe struct + func NewTxSubscribe(msg BaseMessage, txHash string) TxSubscribe + func NewTxUnsubscribe(msg BaseMessage, txHash string) TxSubscribe