Can we play with an offline testnet?

as the title: can I play with offline testnet right now and if yes what are the commands to do it?

edit: the answer

kk managed to do it after some trial and error.

(if you wanna clear a previous network)

safe node killall
pkill -e sn_authd
pkill -e safe
rm -rf ~/.safe

(now for a new network)

curl -so- https://sn-api.s3.amazonaws.com/install.sh | bash
safe node install

now download the sn_node 0.42.6 or 0.42.7 and replace in /.safe/node/

safe node run-baby-fleming
safe keys create --test-coins --for-cli

now test that it worked:

safe keys balance

!!! success !!!

edit: you need to have CLI v0.26.0 and sn_node v0.42.7 or v0.42.6

3 Likes

Offline network is a strange idea :slight_smile:
You can launch your own testnet however.

1 Like

kk managed to do it after some trial and error. (see op)

hide duplicate code

curl -so- https://sn-api.s3.amazonaws.com/install.sh | bash
safe node install
safe node run-baby-fleming
safe auth install
safe auth start
safe auth create
safe auth unlock //for auto unlocking: safe auth unlock --self-auth

now test that it worked:

safe keys balance

!!! success !!!

3 Likes

Yes, absolutely. I’m using it to develop an app as we speak! :grin:

6 Likes

it is more to the side of testing stuff and not just sit and wait!

I mean Safe Network can not consist of single node.
Bunch of interconnected nodes are needed.
Since they are connected, they are not offline.
Since they can work without internet, they are offline.
So the question is how to describe it correctly.

I completely agree that testnets are useful.

with the “run-baby-fleming” it starts 16 nodes

In computer security, they use term “air-gapped”, but it sounds weird in this context.

2 Likes

You can use vdash to monitor all your local vaults too, see https://forum.autonomi.community/t/vdash-safe-node-dashboard-works-with-fleming-testnets-or-local-networks

3 Likes

Really? Thought it was 11, that must be a very recent change.

1 Like

I am wrong its 11…

2 Likes