Listing accounts from Primary node on sandbox private network

Hi! I am trying to list accounts on a sandbox private network, according to the network template two nodes are created, one in the Node directory and the other one in the Primary directory. I can list Node accounts without a problem but when trying to list Primary accounts I get a connection refused error. Here’s the command I’m running:
$ sandbox goal -d /opt/testnetwork/Primary account list
And the response:
Couldn't list wallets: Get "http://127.0.0.1:7833/v1/wallets": dial tcp 127.0.0.1:7833: connect: connection refused

It looks like you need to first run:

./sandbox goal -d /opt/testnetwork/Primary kmd start

Why do you want to access those wallets from Primary?

1 Like

Thanks fabrice! that worked :slightly_smiling_face:
I am writing a CLI for managing my local development environment and was trying to replicate what Jason did in this script