Skip to content

Commit

Permalink
Update JSON-RPC
Browse files Browse the repository at this point in the history
  • Loading branch information
rubo committed Sep 14, 2023
1 parent b1c34fb commit 659faff
Show file tree
Hide file tree
Showing 11 changed files with 754 additions and 233 deletions.
18 changes: 13 additions & 5 deletions docs/interacting/json-rpc/admin.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ Adds given node.
<TabItem value="params" label="Parameters">

1. `enode`: *string*

2. `addToStaticNodes`: *boolean*


</TabItem>
<TabItem value="request" label="Request" default>

Expand Down Expand Up @@ -89,8 +91,13 @@ Information about this node
- `listenAddr`: *string*
- `name`: *string*
- `ports`: *object*
- `protocols`: *object*

- `discovery`: *string* (hex integer)
- `listener`: *string* (hex integer)
- `protocols`: map of *object*
- `network`: *string* (hex integer)
- `difficulty`: *string* (hex integer)
- `genesis`: *string* (hash)
- `head`: *string* (hash)

</TabItem>
</Tabs>
Expand All @@ -104,6 +111,7 @@ Displays a list of connected peers including information about them (`clientId`,

1. `includeDetails`: *boolean*


</TabItem>
<TabItem value="request" label="Request" default>

Expand Down Expand Up @@ -145,7 +153,6 @@ List of connected peers including information
- `lastSignal`: *string*
- `port`: *string* (hex integer)


</TabItem>
</Tabs>

Expand Down Expand Up @@ -179,8 +186,7 @@ curl localhost:8545 \
}
```

`result`: *object*

`result`: *integer*

</TabItem>
</Tabs>
Expand All @@ -193,8 +199,10 @@ Removes given node.
<TabItem value="params" label="Parameters">

1. `enode`: *string*

2. `removeFromStaticNodes`: *boolean*


</TabItem>
<TabItem value="request" label="Request" default>

Expand Down
15 changes: 11 additions & 4 deletions docs/interacting/json-rpc/clique.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ This method drops a currently running proposal. The signer will not cast further

1. `signer`: *string* (address)


</TabItem>
<TabItem value="request" label="Request" default>

Expand Down Expand Up @@ -56,6 +57,7 @@ Retrieves the signer of the block with the given hash. Returns error of a block

1. `hash`: *string* (hash)


</TabItem>
<TabItem value="request" label="Request" default>

Expand Down Expand Up @@ -166,6 +168,7 @@ Retrieves the list of authorized signers at the specified block by hash.

1. `hash`: *string* (hash)


</TabItem>
<TabItem value="request" label="Request" default>

Expand Down Expand Up @@ -206,6 +209,7 @@ Retrieves the list of authorized signers at the specified block by hash but with

1. `hash`: *string* (hash)


</TabItem>
<TabItem value="request" label="Request" default>

Expand Down Expand Up @@ -246,6 +250,7 @@ Retrieves the list of authorized signers at the specified block by block number.

1. `number`: *string* (hex integer)


</TabItem>
<TabItem value="request" label="Request" default>

Expand Down Expand Up @@ -311,8 +316,7 @@ curl localhost:8545 \
- `hash`: *string* (hash)
- `number`: *string* (hex integer)
- `signerLimit`: *string* (hex integer)
- `signers`: *object*

- `signers`: map of *string* (hex integer)

</TabItem>
</Tabs>
Expand All @@ -326,6 +330,7 @@ Retrieves the state snapshot at a given block.

1. `hash`: *string* (hash)


</TabItem>
<TabItem value="request" label="Request" default>

Expand Down Expand Up @@ -356,8 +361,7 @@ curl localhost:8545 \
- `hash`: *string* (hash)
- `number`: *string* (hex integer)
- `signerLimit`: *string* (hex integer)
- `signers`: *object*

- `signers`: map of *string* (hex integer)

</TabItem>
</Tabs>
Expand All @@ -371,6 +375,7 @@ Forces Clique block producer to produce a new block

1. `parentHash`: *string* (hash)


</TabItem>
<TabItem value="request" label="Request" default>

Expand Down Expand Up @@ -410,8 +415,10 @@ Adds a new authorization proposal that the signer will attempt to push through.
<TabItem value="params" label="Parameters">

1. `signer`: *string* (address)

2. `vote`: *boolean*


</TabItem>
<TabItem value="request" label="Request" default>

Expand Down
Loading

0 comments on commit 659faff

Please sign in to comment.