Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockIdentifier ¶
type BlockIdentifier struct { *ubiquity.BlockIdentifier Revert bool }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements Ubiquity Websocket API - https://app.blockdaemon.com/docs/ubiquity#ubiquity-web-sockets-api
func (*Client) SubscribeBlockIDs ¶
func (c *Client) SubscribeBlockIDs() (string, <-chan *BlockIdentifier, error)
SubscribeBlockIDs subscribes a channel "ubiquity.block_identifiers". It returns a notification channel with subID or error.
func (*Client) SubscribeTxs ¶
SubscribeTxs subscribes a channel "ubiquity.txs" with optionally provided filtering over assets and addresses. It returns a notification channel with subID or error.
func (*Client) UnsubscribeBlockIDs ¶
UnsubscribeBlockIDs unsubscribes a channel "ubiquity.block_identifiers".
func (*Client) UnsubscribeTxs ¶
UnsubscribeTxs unsubscribes a channel "ubiquity.txs"
type Config ¶
type Config struct { // You should specify Platform (one of ubiquitypl.*) or WebsocketURL along with APIKey Platform string Network string // mainnet by default WebsocketURL string // You can use one of the constants ubiquityws.Endpoint* APIKey string PublishTimeoutSec int64 ResponseTimeoutSec int64 ShowDebug bool }
Click to show internal directories.
Click to hide internal directories.