package
0.0.5
Repository: https://github.com/atmackay/go-blocknative.git
Documentation: pkg.go.dev

# Functions

NetName converts chain ID to network name (string).
New returns a new blocknative websocket client.
NewAddressSubscribe constructs a address subscription message.
NewAddressUnsubscribe constructs a address unsubscribe message.
NewBaseMessage returns a base message for the supplied network ID.
NewBaseMessageMainnet returns a base message suitable for mainnet usage.
NewConfig returns a new config instance.
NewConfiguration constructs a new configuration message.
NewEventUnsubscribe constructs an Event unsubscribe message.
NewSubscription creates a carrier for tracking events.
NewTxSubscribe constructs a Transaction subscription message.
NewTxUnsubscribe constructs a Transaciton unsubscribe message.
No description provided by the author

# Structs

Account bundles a single account address.
AddressSubscribe is used to subscribe/unsubscribe to address events.
BaseMessage is the base message required for all interactions with the websockets api.
Blockchain is a type fulfilling the blockchain params.
Client wraps gorilla websocket connections.
Config provides a specific config instance.
Configuration enables configuration of the blocknative websockets api and wraps the Config type.
ConnectResponse is the message we receive when opening a connection to the API.
EthTxPayload is payload returned from a subscription to blocknative api.
MsgHistory is used to store a copy of all messages we send such that in the event of connection drops we can re-establish our state.
Opts provides configuration over the websocket connection.
Transaction bundles a single tx.
TxSubscribe is used to subscribe/unsubscribe to transaction id events.

# Interfaces

Subscription represents a stream of events.