Skip to content

Commit 1410cf5

Browse files
committed
Update quickstart to not use obsolete command
Fixes ethereum#1525
1 parent 2ef3ec1 commit 1410cf5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docs/guides/trinity/quickstart.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,14 +189,16 @@ Using ``--preferred-node`` is a good way to ensure Trinity running in
189189
Retrieving Chain information via web3
190190
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
191191

192-
While just running ``trinity`` will start syncing the chain just fine, it doesn't let us interact
193-
with the chain directly (apart from the JSON-RPC API). However, we can run Trinity with the
194-
``console`` subcommand to get an interactive ``ipython`` shell that binds a
192+
While just running ``trinity`` already causes the node to start syncing, it doesn't let us interact
193+
with the chain directly (apart from the JSON-RPC API).
194+
195+
However, we can attach an interactive shell to a running Trinity instance with the
196+
``attach`` subcommand. The interactive ``ipython`` shell binds a
195197
`web3 <http://web3py.readthedocs.io>`_ instance to the ``w3`` variable.
196198

197199
.. code:: sh
198200
199-
trinity console
201+
trinity attach
200202
201203
Now that Trinity runs in an interactive shell mode, let's try to get some information about the
202204
latest block by calling ``w3.eth.getBlock('latest')``.

0 commit comments

Comments
 (0)