Skip to content

Commit

Permalink
doc: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
vanderheijden86 committed Sep 7, 2022
1 parent cbd1d78 commit c3ef4ff
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,23 @@ INFURA_KEY=<place your INFURA key here>


## Running
You can either run the `mempoolexplorer.go` file to see the pending transactions as a stream of TX hashes, or run
the tests in `mempoolexplorer_tests.go` to see the functionality to get transaction details.
You run the tests in `mempoolexplorer_tests.go` to see the functionality to get the mempool TX hashes and transaction
details.

```text
=== RUN TestMain_streamMemPoolTxs
Channel length: 0
Channel capacity: 100
0x58b232edfac1325a15df16da8a5c7b053f8767995fa592a58ebc4a9c2739211c
Channel length: 0
Channel capacity: 100
0x5430a13353856c8324247af58dc552316e8f5638d34a8e1a508b8abfc396b9ea
Channel length: 0
Channel capacity: 100
0x330e7c22df45f524d4a76ce18bc38bb00f21b4e8b0e82aa1f32e65eff742b99a
Channel length: 0
Channel capacity: 100
0xbecb2757392ba5d4488135324ffecbc7f4c0e677b3ff94479bb4a4fc140188c4
Channel length: 0
```

0 comments on commit c3ef4ff

Please sign in to comment.