StaticstartStart a light node, subscribe to the fee and response topics of the chain, and read the fee messages of the last 5 minutes from Store.
Chain and node options.
EVM chain ID.
libp2p options with the transport. The Node entry passes TCP.
The started client.
The usable quotes for a token that the client holds now: the cheapest first, then the most reliable.
Fee token.
The ranked quotes.
Wait until a broadcaster quotes a token. Take the cheapest quote, or the quote of one broadcaster.
Fee token.
OptionalrailgunAddress: string
0zk address of the broadcaster to use. Any broadcaster when undefined.
The quote.
Send a proven transaction to the broadcaster of a quote and wait for its answer. The answer comes by Filter, and Store covers a Filter message that the node missed.
Proven transaction. Its first commitment must be the fee note to quote.railgunAddress.
Quote that the fee note pays.
The transaction hash that the broadcaster sent.
Stop the light node.
A Waku light node on the broadcaster network that reads fee quotes and sends transact requests for one chain.