LookupNode
@totemsdk/lookup-node / LookupNode
Class: LookupNode
@totemsdk/lookup-node — public API
Implements
Constructors
Constructor
new LookupNode(
config):LookupNode
Parameters
config
Returns
LookupNode
Properties
agentRegistry?
readonlyoptionalagentRegistry?:AgentRegistry
Implementation of
appRegistry?
readonlyoptionalappRegistry?:AppRegistry
Implementation of
config
readonlyconfig:LookupNodeConfig
Implementation of
lease?
readonlyoptionallease?:LeaseCoordinator
Implementation of
nodeId
nodeId:
string
Implementation of
provider
readonlyprovider:ChainStateProvider
Implementation of
relay?
readonlyoptionalrelay?:TxPoWRelay
Implementation of
store
readonlystore:SqliteStore
Implementation of
trustIndex?
readonlyoptionaltrustIndex?:TrustIndex
Implementation of
watchlist
readonlywatchlist:WatchlistManager
Implementation of
Accessors
isMegaMMRMode
Get Signature
get isMegaMMRMode():
boolean
Whether this node is running in MegaMMR/indexer mode.
When true, the provider is expected to support wider chain-state queries
such as full balance indexing and chain-wide analytics endpoints.
The provider's getCoins() may be called without an address filter to
retrieve all coins from the indexer.
Returns
boolean
Implementation of
sessionCount
Get Signature
get sessionCount():
number
Returns
number
Methods
getSessions()
getSessions():
ClientSession[]
Returns
ClientSession[]
handleConnection()
handleConnection(
transport):ClientSession
Register a new client connection. In production: called for each Hyperswarm connection. In tests: inject a TestTransport (see tests/helpers.ts).
Parameters
transport
Returns
ClientSession
onSessionClosed()
onSessionClosed(
sessionId):void
Parameters
sessionId
string
Returns
void
Implementation of
NodeDispatcher.onSessionClosed
start()
start():
Promise<void>
Returns
Promise<void>
stop()
stop():
Promise<void>
Returns
Promise<void>