You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: statediff/doc.go
+11-2Lines changed: 11 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -20,13 +20,23 @@ This work is adapted from work by Charles Crain at https://github.com/jpmorganch
20
20
Package statediff provides an auxiliary service that processes state diff objects from incoming chain events,
21
21
relaying the objects to any rpc subscriptions.
22
22
23
+
The service is spun up using the below CLI flags
24
+
--statediff: boolean flag, turns on the service
25
+
--statediff.streamblock: boolean flag, configures the service to associate and stream out the rest of the block data with the state diffs.
26
+
--statediff.intermediatenodes: boolean flag, tells service to include intermediate (branch and extension) nodes; default (false) processes leaf nodes only.
27
+
--statediff.pathsandproofs: boolean flag, tells service to generate paths and proofs for the diffed storage and state trie leaf nodes.
28
+
--statediff.watchedaddresses: string slice flag, used to limit the state diffing process to the given addresses. Usage: --statediff.watchedaddresses=addr1 --statediff.watchedaddresses=addr2 --statediff.watchedaddresses=addr3
29
+
30
+
If you wish to use the websocket endpoint to subscribe to the statediff service, be sure to open up the Websocket RPC server with the `--ws` flag.
31
+
23
32
Rpc subscriptions to the service can be created using the rpc.Client.Subscribe() method,
24
33
with the "statediff" namespace, a statediff.Payload channel, and the name of the statediff api's rpc method- "stream".
0 commit comments