Skip to content

Commit

Permalink
tweal: node-dusk-http-wss
Browse files Browse the repository at this point in the history
  • Loading branch information
BoboTiG committed Jan 29, 2025
1 parent 134bebd commit 0ab0cc1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sources/blockchain/node-dusk-http-wss.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Vous pouvez modifier le nombre de blocs à la ligne `last: 100` (pour les 100 de
:language: shell
```

Le même type de requête peut être effectué en spécifiant le nombre de blocs dans un entête HTTP spécial `rusk-gqlvar-XXX` (où `XXX` est le nom de la variable) :
Le même type de requête peut être effectué en spécifiant le nombre de blocs dans un entête HTTP spécial [`rusk-gqlvar-XXX`](https://github.com/dusk-network/rusk/blob/2db27ecdd9614605ca2fd83a5a7370a0d0900706/rusk/src/lib/http/chain.rs#L35) (où `XXX` est le nom de la variable) :

```{literalinclude} snippets/node-dusk-http-wss.sh
:lines: 22-26
Expand Down
4 changes: 2 additions & 2 deletions sources/en/blockchain/node-dusk-http-wss.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ VKZpBrNtEeTobMgYkkdcGiZn8fK2Ve2yez429yRXrH4nUUDTuvr7Tv74xFA2DKNVegtF6jaom2uacZMm
## 1️⃣ GraphQL

```{hint}
GraphQL requests use predefined data from within [rusk](https://github.com/dusk-network/rusk/blob/master/explorer/src/lib/services/gql-queries.js), and more capabilities are to be found.
GraphQL requests use predefined data from within [rusk](https://github.com/dusk-network/rusk/blob/master/explorer/src/lib/services/gql-queries.js), and more capabilities are to be discovered yet.
```

### Fetch the latest block height
Expand Down Expand Up @@ -52,7 +52,7 @@ You can tweak the blocks count at the line `last: 100` (latest 100 blocks for in
:language: shell
```

Same as above, but using a special HTTP header to pass the number of blocks to fetch as a variable: `rusk-gqlvar-XXX` (where `XXX` is the vairable name).
Same as above, but using a special HTTP header to pass the number of blocks to fetch as a variable: [`rusk-gqlvar-XXX`](https://github.com/dusk-network/rusk/blob/2db27ecdd9614605ca2fd83a5a7370a0d0900706/rusk/src/lib/http/chain.rs#L35) (where `XXX` is the vairable name).

```{literalinclude} ../../blockchain/snippets/node-dusk-http-wss.sh
:lines: 22-26
Expand Down

0 comments on commit 0ab0cc1

Please sign in to comment.