Skip to content

Commit

Permalink
OCTODSO-588: Update tabs in docs of version of 23.7.3
Browse files Browse the repository at this point in the history
Signed-off-by: Vijay <taraka.prabhu@consensys.net>
  • Loading branch information
Vijay committed Dec 20, 2023
1 parent 8909620 commit 0a9106d
Show file tree
Hide file tree
Showing 45 changed files with 5,989 additions and 3,651 deletions.
13 changes: 10 additions & 3 deletions docs/private-networks/reference/api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1140,13 +1140,17 @@ curl -X POST --data '{"jsonrpc":"2.0","method":"priv_call","params":["tb8NVyQqZn
}
```

# curl GraphQL
</TabItem>

<TabItem value="curl GraphQL" label="curl GraphQL">

```bash
curl -X POST -H "Content-Type: application/json" --data '{ "query": "{block {number call (data : {from : \"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b\", to: \"0x69498dd54bd25aa0c886cf1f8b8ae0856d55ff13\", data :\"0x12a7b914\"}){data status}}}"}' http://localhost:8547/graphql
```

# GraphQL
</TabItem>

<TabItem value="GraphQL" label="GraphQL">

```bash
{
Expand All @@ -1160,7 +1164,10 @@ curl -X POST -H "Content-Type: application/json" --data '{ "query": "{block {num
}
```

# GraphQL result
</TabItem>

<TabItem value="GraphQL result" label="GraphQL result">


```json
{
Expand Down
2 changes: 0 additions & 2 deletions docs/private-networks/tutorials/ibft/validators.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@ Verify that the new validator is now in the list of validators using [`ibft_getV

<TabItem value="curl HTTP request" label="curl HTTP request" default>

# curl HTTP request

```bash
curl -X POST --data '{"jsonrpc":"2.0","method":"ibft_getValidatorsByBlockNumber","params":["latest"], "id":1}' http://127.0.0.1:8545
```
Expand Down
8 changes: 6 additions & 2 deletions docs/private-networks/tutorials/permissioning/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -336,13 +336,17 @@ curl -X POST --data '{"jsonrpc":"2.0","method":"perm_addNodesToAllowlist","param
curl -X POST --data '{"jsonrpc":"2.0","method":"perm_addNodesToAllowlist","params":[["<EnodeNode1>","<EnodeNode2>","<EnodeNode3>","EnodeNode4"]], "id":1}' http://127.0.0.1:8546
```

# Node-3
</TabItem>

<TabItem value="Node-3" label="Node-3">

```bash
curl -X POST --data '{"jsonrpc":"2.0","method":"perm_addNodesToAllowlist","params":[["<EnodeNode1>","<EnodeNode2>","<EnodeNode3>","EnodeNode4"]], "id":1}' http://127.0.0.1:8547
```

# Node-4
</TabItem>

<TabItem value="Node-4" label="Node-4">

```bash
curl -X POST --data '{"jsonrpc":"2.0","method":"perm_addNodesToAllowlist","params":[["<EnodeNode1>","<EnodeNode2>","<EnodeNode3>","EnodeNode4"]], "id":1}' http://127.0.0.1:8548
Expand Down
2 changes: 0 additions & 2 deletions docs/public-networks/how-to/use-besu-api/authenticate.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ Besu default is `RS256`.
openssl rsa -pubout -in privateRSAKey.pem -pubout -out publicRSAKey.pem
```

# `ES256` `secp256r1` ECDSA Keys
</TabItem>

<TabItem value="ES256 secp256r1 ECDSA Keys" label="`ES256 secp256r1 ECDSA Keys">
Expand Down Expand Up @@ -284,7 +283,6 @@ Specify the `Bearer` in the header.
<Tabs>
<TabItem value="cURL Request with authentication placeholders" label="cURL Request with authentication placeholders" default>
# cURL Request with authentication placeholders
```bash
curl -X POST -H 'Authorization: Bearer <JWT_TOKEN>' -d '{"jsonrpc":"2.0","method":"<API_METHOD>","params":[],"id":1}' <JSON-RPC-http-hostname:port>
Expand Down
Loading

0 comments on commit 0a9106d

Please sign in to comment.