File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,32 @@ $ ./jsonrpc-cli --user=rpcuser --pass=rpcpassword http://localhost:28332/ getbl
33
33
588589
34
34
```
35
35
36
+ ## With method parameters
37
+
38
+ ### params as separate command-line args
39
+
40
+ ```
41
+ $ ./jsonrpc-cli --user=rpcuser --pass=rpcpassword http://localhost:28332/ estimatesmartfee 1 ECONOMICAL
42
+
43
+ {
44
+ "_feerate": "0.00027031",
45
+ "blocks": 1,
46
+ "feerate": 0.00027031
47
+ }
48
+ ```
49
+
50
+ ### params as a json string
51
+
52
+ ```
53
+ $ ./jsonrpc-cli --user=rpcuser --pass=rpcpassword http://localhost:28332/ estimatesmartfee '[1,"ECONOMICAL"]'
54
+
55
+ {
56
+ "_feerate": "0.00027031",
57
+ "blocks": 1,
58
+ "feerate": 0.00027031
59
+ }
60
+ ```
61
+
36
62
## Server's full json response.
37
63
38
64
For this, we specify --resultonly=off
@@ -264,6 +290,7 @@ $ ./jsonrpc-cli --help
264
290
265
291
# Todos
266
292
293
+ * read method parameters from stdin
267
294
* make test cases
268
295
* Support batching (maybe)
269
296
You can’t perform that action at this time.
0 commit comments