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
Vort
May 18, 2021, 3:45am
2
Offline network is a strange idea
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!
6 Likes
it is more to the side of testing stuff and not just sit and wait!
Vort
May 18, 2021, 8:03am
6
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
peca
May 18, 2021, 10:05am
8
In computer security, they use term “air-gapped”, but it sounds weird in this context.
2 Likes
Josh
May 18, 2021, 12:05pm
10
SmoothOperatorGR:
it starts 16 nodes
Really? Thought it was 11, that must be a very recent change.
1 Like