Sui client: Connection refused

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 => (active)
devnet =>

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

good thank you very :smiling_face: :smiling_face: :smiling_face: :smiling_face: