Skip to content

Commit

Permalink
docs/JSON-RPC-API/modules,ethclient: add generic param names to curl …
Browse files Browse the repository at this point in the history
…example

Date: 2021-01-23 04:51:41-06:00
Signed-off-by: meows <b5c6@protonmail.com>
  • Loading branch information
meowsbits committed Jan 23, 2021
1 parent cc5afb0 commit de73918
Show file tree
Hide file tree
Showing 11 changed files with 162 additions and 128 deletions.
22 changes: 11 additions & 11 deletions docs/JSON-RPC-API/modules/admin.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

| Entity | Version |
| --- | --- |
| Source | <code>1.11.22-unstable/generated-at:2021-01-23T04:35:53-06:00</code> |
| Source | <code>1.11.22-unstable/generated-at:2021-01-23T04:50:40-06:00</code> |
| OpenRPC | <code>1.2.6</code> |

---
Expand Down Expand Up @@ -53,7 +53,7 @@ url <code>string</code>
=== "Shell"

``` shell
curl -X POST http://localhost:8545 --data '{"jsonrpc": "2.0", id": 42, "method": "admin_addPeer", "params": []}'
curl -X POST http://localhost:8545 --data '{"jsonrpc": "2.0", id": 42, "method": "admin_addPeer", "params": [<url>]}'
```

=== "Javascript Console"
Expand Down Expand Up @@ -126,7 +126,7 @@ url <code>string</code>
=== "Shell"

``` shell
curl -X POST http://localhost:8545 --data '{"jsonrpc": "2.0", id": 42, "method": "admin_addTrustedPeer", "params": []}'
curl -X POST http://localhost:8545 --data '{"jsonrpc": "2.0", id": 42, "method": "admin_addTrustedPeer", "params": [<url>]}'
```

=== "Javascript Console"
Expand Down Expand Up @@ -302,7 +302,7 @@ blockNr <code>rpc.BlockNumber</code>
=== "Shell"

``` shell
curl -X POST http://localhost:8545 --data '{"jsonrpc": "2.0", id": 42, "method": "admin_ecbp1100", "params": []}'
curl -X POST http://localhost:8545 --data '{"jsonrpc": "2.0", id": 42, "method": "admin_ecbp1100", "params": [<blockNr>]}'
```

=== "Javascript Console"
Expand Down Expand Up @@ -435,7 +435,7 @@ last <code>*uint64</code>
=== "Shell"

``` shell
curl -X POST http://localhost:8545 --data '{"jsonrpc": "2.0", id": 42, "method": "admin_exportChain", "params": []}'
curl -X POST http://localhost:8545 --data '{"jsonrpc": "2.0", id": 42, "method": "admin_exportChain", "params": [<file>, <first>, <last>]}'
```

=== "Javascript Console"
Expand Down Expand Up @@ -526,7 +526,7 @@ file <code>string</code>
=== "Shell"

``` shell
curl -X POST http://localhost:8545 --data '{"jsonrpc": "2.0", id": 42, "method": "admin_importChain", "params": []}'
curl -X POST http://localhost:8545 --data '{"jsonrpc": "2.0", id": 42, "method": "admin_importChain", "params": [<file>]}'
```

=== "Javascript Console"
Expand Down Expand Up @@ -650,7 +650,7 @@ n <code>int</code>
=== "Shell"

``` shell
curl -X POST http://localhost:8545 --data '{"jsonrpc": "2.0", id": 42, "method": "admin_maxPeers", "params": []}'
curl -X POST http://localhost:8545 --data '{"jsonrpc": "2.0", id": 42, "method": "admin_maxPeers", "params": [<n>]}'
```

=== "Javascript Console"
Expand Down Expand Up @@ -1119,7 +1119,7 @@ url <code>string</code>
=== "Shell"

``` shell
curl -X POST http://localhost:8545 --data '{"jsonrpc": "2.0", id": 42, "method": "admin_removePeer", "params": []}'
curl -X POST http://localhost:8545 --data '{"jsonrpc": "2.0", id": 42, "method": "admin_removePeer", "params": [<url>]}'
```

=== "Javascript Console"
Expand Down Expand Up @@ -1192,7 +1192,7 @@ url <code>string</code>
=== "Shell"

``` shell
curl -X POST http://localhost:8545 --data '{"jsonrpc": "2.0", id": 42, "method": "admin_removeTrustedPeer", "params": []}'
curl -X POST http://localhost:8545 --data '{"jsonrpc": "2.0", id": 42, "method": "admin_removeTrustedPeer", "params": [<url>]}'
```

=== "Javascript Console"
Expand Down Expand Up @@ -1326,7 +1326,7 @@ vhosts <code>*string</code>
=== "Shell"

``` shell
curl -X POST http://localhost:8545 --data '{"jsonrpc": "2.0", id": 42, "method": "admin_startRPC", "params": []}'
curl -X POST http://localhost:8545 --data '{"jsonrpc": "2.0", id": 42, "method": "admin_startRPC", "params": [<host>, <port>, <cors>, <apis>, <vhosts>]}'
```

=== "Javascript Console"
Expand Down Expand Up @@ -1481,7 +1481,7 @@ apis <code>*string</code>
=== "Shell"

``` shell
curl -X POST http://localhost:8545 --data '{"jsonrpc": "2.0", id": 42, "method": "admin_startWS", "params": []}'
curl -X POST http://localhost:8545 --data '{"jsonrpc": "2.0", id": 42, "method": "admin_startWS", "params": [<host>, <port>, <allowedOrigins>, <apis>]}'
```

=== "Javascript Console"
Expand Down
Loading

0 comments on commit de73918

Please sign in to comment.