1

I am currently running a Solana validator, but I've noticed that the ledger folder is increasing in size while the accounts folder remains at 28kb. Am I synchronizing incorrectly? I followed the instructions at https://chainstack.com/how-to-run-a-solana-node/ during the installation. My primary goal is to download the accounts data. How can I achieve that?

1 Answer 1

1

The node downloads the blockchain data as a compressed file called a snapshot, after this file is downloaded and processed the node starts validating. This can take between 5 minutes to over an hour if you're on mainnet with a less powerful server.

You should check the logs to see for errors. I know it logs a lot of data, but filter by "ERROR" (all-caps) or "restart" to identify problems.

If you just want the account data, you can download the snapshot yourself with these options:

If you decompress the snapshot you will get this directory structure which contains the accounts:

$ tree .
.
├── accounts
│   ├── 221707449.713259
│   ├── ...
│   ├── ...
│   └── 222140108.985850
├── snapshots
│   ├── 222140108
│   │   └── 222140108
│   └── status_cache
└── version

Not sure what you want to do with the account data, but here is one way to read it.

1
  • 1
    Thank you for explaining in detail.
    – Solextra
    Commented Sep 16, 2023 at 7:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.