Can't connect to Zallet’s JSON-RPC interface

Hi with the latest pull from the zallet repo you should be able to access zallet rpc help.

For a simple dev setup,

  • local zebrad 3.0 synced
  • zebrad rpc turned on
  • zebrad cookies turned on
  • git cloned zallet repo

Configure a datadir and zallet.toml in the default location: ~/.zallet. Here is an example zebrad.toml that works for me:

  • You will need to setup an encryption id, an replace with your local username of your box.
  • Can choose different ports as needed, but notice the difference between validator_address and rpc bind ports

Then start zallet:

./target/release/zallet -d /home/<username>/.zallet/datadir/ -c /home/<username>/.zallet/datadir/zallet.toml start

On another screen/tmux/terminal now run

./target/release/zallet -d /home/<username>/.zallet/datadir -c /home/<username>/.zallet/datadir/zallet.toml rpc help

On a seperate note, I would not run this setup in production until its out of alpha/beta :+1:

3 Likes