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
.option("--from <from>","The starting block, defaults to 0","0")
18
-
.option(
19
-
"--append <path>",
20
-
"Path to append new remarks to, will auto-detect last block and use it as FROM. Overrides FROM. If file does not exist, it will be created and FROM will default to 0."
21
-
)
22
-
.option(
23
-
"--prefixes <prefixes>",
24
-
"Limit remarks to prefix. No default. Can be hex (0x726d726b,0x524d524b) or string (rmrk,RMRK), or combination (rmrk,0x524d524b), separate with comma for multiple",
25
-
""
26
-
)
27
-
.option(
28
-
"--to <to>",
29
-
"Ending block, defaults to latest on given network",
30
-
"latest"
31
-
)
32
-
.action(async(opts: Options)=>{
33
-
constapi=awaitgetApi(opts.ws);
34
-
console.log("Connecting to "+opts.ws);
35
-
constappend=opts.append;
36
-
letfrom=parseInt(opts.from);
13
+
constfetch=async()=>{
14
+
constargs=arg({
15
+
// Types
16
+
"--ws": String,// Optional websocket url
17
+
"--append": String,// Path to append new remarks to, will auto-detect last block and use it as FROM. Overrides FROM. If file does not exist, it will be created and FROM will default to 0.
18
+
"--from": Number,// The starting block
19
+
"--to": Number,// The starting block
20
+
"--prefixes": String,// Limit remarks to prefix. No default. Can be hex (0x726d726b,0x524d524b) or string (rmrk,RMRK), or combination (rmrk,0x524d524b), separate with comma for multiple
0 commit comments