Skip to content

Commit

Permalink
Merge branch 'master' of github.com:plebbit/plebbit-js
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinse12 committed Dec 8, 2023
2 parents 7421471 + 7d225ca commit f621b0c
Showing 1 changed file with 37 additions and 3 deletions.
40 changes: 37 additions & 3 deletions src/rpc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ new Subscription(subscriptionId).on('message', console.log)
- `method: listSubplebbits, params: []`
- `method: getDefaults, params: []`
- `method: fetchCid, params: [cid: string]`
- `method: getPlebbitOptions, params: []`
- `method: setPlebbitOptions, params: [plebbitOptions]`
- `method: getSettings, params: []`
- `method: setSettings, params: [plebbitRpcSettings]`
- `method: getPeers, params: []`
- `method: getStats, params: []`
Expand Down Expand Up @@ -383,4 +383,38 @@ Unsubscribe from notifications
```json
{ "jsonrpc": "2.0", "result": true, "id": 1 }
```
```
## getSettings
Get the current plebbit rpc settings
### Result:
`<PlebbitRpcSettings>` - Current plebbit rpc settings
### Code sample:
```json
{
"jsonrpc": "2.0",
"id": 1,
"method": "getSettings",
"params": []
}
```
### Response:
```json
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"plebbitOptions": {...},
"challenges": {
"challenge-name": {...}
}
},
}
```

0 comments on commit f621b0c

Please sign in to comment.