If a sui client
sub-command returns a Connection refused response for a response you expected to go to devnet:
Networking or low-level protocol error: HTTP error: error trying to connect: tcp connect error: Connection refused (os error 111)
Double check that your client is pointing to devnet
using:
$ sui client envs
localnet => http://0.0.0.0:9000 (active)
devnet => https://fullnode.devnet.sui.io:443
If as in the output above, your call indicates that localnet
is active, it means that your request was sent to your locally running network (which will fail if it is not actually running). To switch to devnet, use:
$ sui client switch --env devnet