Skip to content

Commit

Permalink
fixed minor typos in book's dev/quick_setup (#787)
Browse files Browse the repository at this point in the history
* fixed minor typos in book's dev/quick_setup

* removed block number
  • Loading branch information
rakshit087 authored Jul 4, 2023
1 parent 04b0df6 commit 5b51f35
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions book/src/developers/quick_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,8 @@ In a python shell:
```py
>>> from web3 import Web3
>>> w3 = Web3(Web3.IPCProvider("/tmp/trin-jsonrpc.ipc"))
>>> w3.clientVersion
>>> w3.client_version
'trin 0.0.1-alpha'
>>> w3.eth.blockNumber
11870768
```

To request a custom jsonrpc endpoint, provide the endpoint and array of params. eg:
Expand All @@ -135,10 +133,8 @@ Then, in a python shell:
```py
>>> from web3 import Web3
>>> w3 = Web3(Web3.HTTPProvider("http://127.0.0.1:8545"))
>>> w3.clientVersion
>>> w3.client_version
'trin 0.0.1-alpha'
>>> w3.eth.blockNumber
11870768
```

The client version responds immediately, from the trin client. The block number is retrieved more slowly, by proxying to Infura.
Expand Down

0 comments on commit 5b51f35

Please sign in to comment.