Versions in this module Expand all Collapse all v1 v1.0.1 Aug 3, 2023 v1.0.0 Jul 31, 2023 Changes in this version + func NetName(id int64) (string, error) + 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 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) EventSub(msg Configuration) error + func (c *Client) Initialize(msg BaseMessage) error + func (c *Client) ReadJSON(out interface{}) error + 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 + type ConnectResponse struct + ConnectionID string + Reason string + ServerVersion string + ShowUX bool + Status string + Version int + type ContractCall struct + ContractAddress string + ContractAlias string + ContractDecimals int + ContractName string + ContractType string + DecimalValue string + MethodName string + Params struct{ ... } + type EthTxPayload struct + ConnectionID string + Event struct{ ... } + ServerVersion string + Status string + TimeStamp time.Time + Version int + type InternalTransaction struct + ContractCall ContractCall + From string + Gas int + GasUsed int + Input string + To string + Type string + Value string + 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 NetBalanceChange struct + Address string + BalanceChanges []struct{ ... } + type Opts struct + APIKey string + Host string + Path string + PrintConnectResponse bool + Scheme string + type Transaction struct + Hash string + type TransactionPayload struct + Asset string + BaseFeePerGas string + BlockHash string + BlockNumber int + BlocksPending int + Counterparty string + Direction string + From string + Gas int + GasPrice string + GasPriceGwei int + GasUsed int + Hash string + Input string + InternalTransactions []InternalTransaction + MaxFeePerGas string + MaxPriorityFeePerGas string + MonitorID string + MonitorVersion string + NetBalanceChanges []NetBalanceChange + Nonce int + PendingTimeStamp time.Time + Status string + TimePending string + TimeStamp time.Time + To string + TransactionIndex int + Type int + Value string + WatchedAddress string + type TxSubscribe struct + func NewTxSubscribe(msg BaseMessage, txHash string) TxSubscribe + func NewTxUnsubscribe(msg BaseMessage, txHash string) TxSubscribe