I'm trying to use pytezos with sandboxed tezos server. Pytezos requires the following arguments for connection:
- shell, set to http://localhost:18731/
- key, which I can't figure out
I tried the identity.json created by the sandbox server without success, seems like pytezos really wants a mnemonic:
>>> from pytezos import pytezos
>>> pytezos.using(shell='http://localhost:18731', key='/tmp/tezos-node.TyiwsQkx/identity.json')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/jpic/.local/lib/python3.7/site-packages/pytezos/tools/docstring.py", line 67, in __call__
return method(self.class_instance, *args, **kwargs)
File "/home/jpic/.local/lib/python3.7/site-packages/pytezos/interop.py", line 68, in using
return self._spawn(shell=shell, key=key)
File "/home/jpic/.local/lib/python3.7/site-packages/pytezos/client.py", line 27, in _spawn
key=kwargs.get('key', self.key)
File "/home/jpic/.local/lib/python3.7/site-packages/pytezos/interop.py", line 50, in __init__
self.key = Key.from_faucet(key)
File "/home/jpic/.local/lib/python3.7/site-packages/pytezos/crypto.py", line 214, in from_faucet
mnemonic=data['mnemonic'],
KeyError: 'mnemonic'
>>>