# StateSync/Snapshot

## &#x20;                                                     🔥Story🔥

## &#x20;                                                     TESTNET

## [Node installation instructions](https://stavr-team.gitbook.io/nodes-guides/testnets/story-network/node-installation)

## StateSync Story Testnet

```bash
SOOON
```

## SnapShot Testnet - updated every 12 hours

{% hint style="success" %} <mark style="color:orange;">**You can check the size and time of snapshot creation with this command**</mark>\
`curl -sI https://story.snapshot.stavr.tech/story-snap.tar.lz4 | grep "last" && curl -sI https://story.snapshot.stavr.tech/story-snap.tar.lz4 | grep content-length | awk '{printf "%.2f GB\n", $2/1024/1024/1024}'`\
\
`curl -sI https://story.snapshot.stavr.tech/story_geth-snap.tar.lz4 | grep "last" && curl -sI https://story.snapshot.stavr.tech/story_geth-snap.tar.lz4 | grep content-length | awk '{printf "%.2f GB\n", $2/1024/1024/1024}'`
{% endhint %}

```sh
cd $HOME
snap install lz4
sudo systemctl stop story story-geth
cp $HOME/.story/story/data/priv_validator_state.json $HOME/.story/story/priv_validator_state.json.backup
rm -rf $HOME/.story/story/data
rm -rf $HOME/.story/geth/odyssey/geth/chaindata
curl -o - -L https://story.snapshot.stavr.tech/story-snap.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.story/story/
curl -o - -L https://story.snapshot.stavr.tech/story_geth-snap.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.story/geth/odyssey/geth/
mv $HOME/.story/story/priv_validator_state.json.backup $HOME/.story/story/data/priv_validator_state.json
wget -O $HOME/.story/story/config/addrbook.json "https://raw.githubusercontent.com/111STAVR111/props/main/Story/addrbook.json"
sudo systemctl restart story-geth
sudo systemctl restart story && sudo journalctl -fu story -ocat
```

## SnapShot Testnet Archive (updated every 2 days)

{% hint style="success" %} <mark style="color:orange;">**You can check the size and time of snapshot creation with this command**</mark> \
`curl -sI https://story-archive.snapshot.stavr.tech/story-snap.tar.lz4 | grep "last" && curl -sI https://story-archive.snapshot.stavr.tech/story-snap.tar.lz4 | grep content-length | awk '{printf "%.2f GB\n", $2/1024/1024/1024}'`\
\
`curl -sI https://story-archive.snapshot.stavr.tech/story_geth-snap.tar.lz4 | grep "last" && curl -sI https://story-archive.snapshot.stavr.tech/story_geth-snap.tar.lz4 | grep content-length | awk '{printf "%.2f GB\n", $2/1024/1024/1024}'`
{% endhint %}

```bash
cd $HOME
snap install lz4
sudo systemctl stop story story-geth
cp $HOME/.story/story/data/priv_validator_state.json $HOME/.story/story/priv_validator_state.json.backup
rm -rf $HOME/.story/story/data 
rm -rf $HOME/.story/geth/odyssey/geth/chaindata
curl -o - -L https://story-archive.snapshot.stavr.tech/story-snap.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.story/story/
curl -o - -L https://story-archive.snapshot.stavr.tech/story_geth-snap.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.story/geth/odyssey/geth/
mv $HOME/.story/story/priv_validator_state.json.backup $HOME/.story/story/data/priv_validator_state.json
wget -O $HOME/.story/story/config/addrbook.json "https://raw.githubusercontent.com/111STAVR111/props/main/Story/addrbook.json"
sudo systemctl restart story-geth
sudo systemctl restart story && sudo journalctl -fu story -ocat
```

### Live Peers (upd every 2h)

```bash
PEERS_URL="https://story-archive.snapshot.stavr.tech/peers-scan.txt"
update_peers() {
PEERS=$(curl -s $PEERS_URL | sed -n 's/^PEERS="\([^"]*\)"$/\1/p')
if [ -n "$PEERS" ]; then
sed -i -e "/^\[p2p\]/,/^\[/{s/^[[:space:]]*persistent_peers *=.*/persistent_peers = \"$PEERS\"/}" $HOME/.story/story/config/config.toml
echo -e "🔥Peers updated successfully 🔥"
else
echo "Failed to get peer data. Check the URL or try again later."
fi
}
update_peers
```

## Useful Tools

🔥API-T🔥: [**https://story.api.t.stavr.tech**](https://story.api.t.stavr.tech)\
🔥RPC-T🔥: [**https://story.rpc.t.stavr.tech**](https://story.rpc.t.stavr.tech)

&#x20;                               **ARCHIVE NODE**

* **rpc archive:** [**https://story.rpc-archive.t.stavr.tech:443**](https://story.rpc-archive.t.stavr.tech:443)

* **api archive:** [**https://story.api-archive.t.stavr.tech:443**](https://story.api-archive.t.stavr.tech:443)

* **grpc archive** [**https://story.grpc-archive.t.stavr.tech:443**](https://story.grpc-archive.t.stavr.tech:443)

* **evm-json:** [**https://story.evm.t.stavr.tech:443**](https://story.evm.t.stavr.tech:443)

* **wss archive: wss\://story.rpc-archive.t.stavr.tech/websocket**

* &#x20;Addrbook-T (upd every 2h)

```python
wget -O $HOME/.story/story/config/addrbook.json "https://story-archive.snapshot.stavr.tech/addrbook.json"
```

* Genesis

```bash
wget -O $HOME/.story/story/config/genesis.json "https://raw.githubusercontent.com/111STAVR111/props/main/Story/genesis.json"
```

* Auto\_install\_script-T

```bash
source <(curl -s https://raw.githubusercontent.com/111STAVR111/props/main/Story/storyt)
```

## 🔥[Decentralization Info](https://github.com/obajay/StateSync-snapshots/tree/main/Projects/Dymension/Decentralization)🔥

<details>

<summary>RPC Scanning</summary>

### We scan nodes in real time every 4 hours. And we provide the final result of RPC endpoints. We cannot influence the operation of these nodes in any way.

```python
If Voting Power is higher than 0 --> then the Node is a validator of the network and may be subject to attack and be a potential threat to the chain.
```

```python
We marked such validators with a red symbol
```

</details>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://stavr-team.gitbook.io/nodes-guides/testnets/story-network/statesync-snapshot.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
