Skip to main content
This page is for contributors testing the Sia storage integration directly. For a guided evaluation of the released CLI, use the Sia backend tutorial instead. The normal test suite uses the local backend and needs no Sia account. This optional test uploads data to a real indexer, retrieves it, and verifies the hash chain.

1. Build with Sia enabled

2. Connect an app to an indexer

Generate or enter a recovery phrase only in your terminal. Never commit, publish, or paste it into an issue. The onboarding example prints an approval URL. Open it, approve the app, then copy the returned 64-character hexadecimal App Key.

3. Run the integration test

Set the indexer URL and App Key only in your shell environment:
The test ingests records, archives them to Sia, reads them back, and verifies the hash chain. It may take several minutes for a first write while Sia storage is provisioned. Without both environment variables, this test skips cleanly so the ordinary CI suite remains independent of a Sia account and external service.

Hosted-account considerations

The hosted sia.storage option currently offers a free plan, but pricing, quotas, and terms are controlled by Sia Storage and may change. Review its current terms before using it for production archives.