Skip to content

Commit

Permalink
Fix ID types to match JSON-RPC 2.0 spec (#569)
Browse files Browse the repository at this point in the history
* Update index.mdx

updating description of id key according to [`JSON  RPC 2.0` standard](https://www.jsonrpc.org/specification#request_object)

* Update index.mdx

* Update docs/rpc/http/index.mdx

* Update index.mdx

Updating description based on specification

---------

Co-authored-by: Mike MacCana <[email protected]>
  • Loading branch information
lifeofpavs and mikemaccana authored Nov 26, 2024
1 parent ddf329e commit 6c5b4cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/rpc/http/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ To make a JSON-RPC request, send an HTTP POST request with a
fields:

- `jsonrpc: <string>` - set to `"2.0"`
- `id: <number>` - a unique client-generated identifying integer
- `id: <string | number | null>` - a unique identifier for the request,
generated by the client. Typically a string or number, though null is
technically allowed but not advised
- `method: <string>` - a string containing the method to be invoked
- `params: <array>` - a JSON array of ordered parameter values

Expand Down

0 comments on commit 6c5b4cd

Please sign in to comment.