Skip to content

Commit

Permalink
Add trace namespace suggestion to install instructions (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
sealer3 authored Oct 8, 2024
1 parent 2f399ad commit feff43d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/install/erigon.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

## Enable the Otterscan RPC namespace in Erigon

When running Erigon, make sure to enable the `eth`, `erigon` and `ots` namespaces in addition to whatever CLI options you are using to start Erigon.
When running Erigon, make sure to enable the `eth`, `erigon`, `trace` and `ots` namespaces in addition to whatever CLI options you are using to start Erigon. The `trace` namespace is used for transaction state diffs.

Enabling namespaces in Erigon is done through the `--http.api` argument.

### Example

```sh
erigon --http.api "eth,erigon,ots[,<other-namespaces>]" [<other CLI arguments...>]
erigon --http.api "eth,erigon,trace,ots[,<other-namespaces>]" [<other CLI arguments...>]
```

> `ots` stands for Otterscan, and it is the JSON-RPC namespace we use for our own custom APIs.
Expand Down
4 changes: 2 additions & 2 deletions src/install/ots2.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ For example, if your Erigon start command is:

```sh
erigon \
--http.api "eth,erigon,ots" \
--http.api "eth,erigon,trace,ots" \
[<other CLI arguments>]
```

change it to:

```sh
erigon \
--http.api "eth,erigon,ots,ots2" \
--http.api "eth,erigon,trace,ots,ots2" \
--experimental.ots2 \
[<other CLI arguments>]
```
Expand Down

0 comments on commit feff43d

Please sign in to comment.