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: doc/polycli_rpcfuzz.md
+60-5Lines changed: 60 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,6 +93,58 @@ Once this has been completed this will be the address of the contract: `0x6fda56
93
93
$ docker run -v $PWD/contracts:/contracts ethereum/solc:stable --storage-layout /contracts/tokens/ERC20/ERC20.sol
94
94
```
95
95
96
+
## Running RPC Fuzz Tests
97
+
98
+
After setting up your RPC endpoint and funding an account, you can run the RPC fuzz tests using various output formats. The tool supports streaming output that follows Unix philosophy - results are sent to stdout and you control data persistence through shell redirection.
99
+
100
+
### Output Format Examples
101
+
102
+
All commands use the same core parameters but produce different output formats:
103
+
104
+
#### Compact Format (Default)
105
+
Real-time colored console output with pass/fail indicators:
--compact Stream output in compact format (default)
106
159
--contract-address string The address of a contract that can be used for testing. If not specified, a contract will be deployed automatically.
107
-
--csv Flag to indicate that output will be exported as a CSV.
108
-
--export-path string The directory export path of the output of the tests. Must pair this with either --json, --csv, --md, or --html
160
+
--csv Stream output in CSV format
109
161
--fuzz Flag to indicate whether to fuzz input or not.
110
162
--fuzzn int Number of times to run the fuzzer per test. (default 100)
111
163
-h, --help helpfor rpcfuzz
112
-
--html Flag to indicate that output will be exported as a HTML.
113
-
--json Flag to indicate that output will be exported as a JSON.
114
-
--md Flag to indicate that output will be exported as a Markdown.
164
+
--html Stream output inHTML format
165
+
--json Stream output inJSON format
166
+
--md Stream output inMarkdown format
115
167
--namespaces string Comma separated list of rpc namespaces to test (default "eth,web3,net,debug,raw")
168
+
--output string What to output: all, failures, summary (default "all")
116
169
--private-key string The hex encoded private key that we'll use to sending transactions (default "42b6e34dc21598a807dc19d7784c71b2a7a01f6480dc6f58258f78e539f1a1fa")
170
+
--quiet Only show final summary
117
171
-r, --rpc-url string The RPC endpoint url (default "http://localhost:8545")
118
172
--seed int A seed for generating random values within the fuzzer (default 123456)
173
+
--summary-interval int Print summary every N tests (0=disabled)
119
174
```
120
175
121
176
The command also inherits flags from parent commands.
0 commit comments