Skip to content

Commit

Permalink
fix(README): add docs for transport query param
Browse files Browse the repository at this point in the history
  • Loading branch information
shanejonas committed Jul 22, 2020
1 parent 1f480b1 commit c92155b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ https://inspector.open-rpc.org

### Url configuration

You can configure the default request and url via url params:
You can configure the default request, url and transport via url params:

`?url=http://localhost:8545`

`?request[jsonrpc]=2.0&request[method]=eth_chainId&request[id]=0`

`?transport=websocket`

here is a full example:

https://inspector.open-rpc.org/?url=https://mock.open-rpc.org/petstore-1.0.0&?request[jsonrpc]=2.0&request[method]=list_pets&request[id]=0
Expand Down

0 comments on commit c92155b

Please sign in to comment.