enter image description here

I'm facing this issue while interacting with my node

  • The error message you are receiving has nothing to do with node / RPC at all (this is why you were asked for details). You have a Python error saying you've written the code incorrectly. I googled the error and the first link brought me to this: stackoverflow.com/questions/23944657/…
    – Simon McLoughlin
    Nov 14, 2022 at 12:10
  • Buddy I'm using the pytezos method not using the method of my own constructed class. Nov 14, 2022 at 12:21

1 Answer 1


To make use of a node you have to call the given RPC for the task you want. Here is an OpenAPI spec of the latest protocol related RPC's: https://gitlab.com/tezos/tezos/-/blob/master/docs/api/kathmandu-openapi.json

And non-protocol specific RPC's: https://gitlab.com/tezos/tezos/-/blob/master/docs/api/rpc-openapi.json

I've also sent you this link previously, to the library pyTezos's quick start guide, which includes samples of connecting to a loclhost node: https://pytezos.org/quick_start.html

They also have interactive learning section here: https://pytezos.baking-bad.org/

FYI, just incase theres any confusion, running your own node is good if you are launching your own application. However if you are only starting to learn, you can save yourself some time by using one of the many publicly available nodes. These shouldn't be relied on for large scale applications, but you can absolutely runs tests / experiments on them. E.g. https://rpc.tzkt.io/ghostnet

  • Like in web3.py we create the instance of web3 with the rpc url in tezos we can do it? like thid w3 = Web3(Rpc url) Nov 14, 2022 at 10:34
  • @ShahbazAli have you read my answer?
    – Simon McLoughlin
    Nov 14, 2022 at 10:38
  • yes I read your answer and following this link "pytezos.org/quick_start.html" Nov 14, 2022 at 10:41
  • my code is that opg= pytezos.using(shell='rpc.ghostnet.teztnets.xyz') bal = opg.balance(address) print(bal) Nov 14, 2022 at 10:41
  • and I'm not getting the address of any account Nov 14, 2022 at 10:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.