Skip to main content

Store a file

Any file can be stored on the network as a blob: an image, a video, a dataset, a backup. You pay in IOTA for a number of epochs, and the file is readable by anyone who knows its blob ID. It takes two signatures in your wallet.

You need: a connected wallet with some testnet IOTA.

Steps​

  1. Open My blobs. The form Store a file is at the top.
  2. Press File and choose the file. The largest blob is about 142 MiB; a larger file is refused before anything is paid.
  3. Set Duration (days): for how many days to keep it, from 1 to 53. The default is 10, and the buttons 1 week, 1 month and Maximum fill it in; the help line says the date it would expire. On testnet an epoch is one day, so the days are epochs.
  4. Decide whether it is deletable (checked by default). A deletable blob can be deleted by you before it expires, and the space you paid comes back to your wallet. A permanent blob cannot be deleted by its owner before its end epoch (see the Blob object; the operator can still block or delete content after a legal notice, as the terms of use say): uncheck the box when others rely on the file staying there.
  5. Press Store. The app encodes the file in your browser, and then asks your wallet to sign two transactions:
    • the first registers and pays for the blob: storage for the epochs you chose, plus a one-off write fee, plus gas;
    • once the storage nodes have received and confirmed the data, the second certifies the blob on IOTA. It only costs gas.

The buttons stay disabled while it runs, and a list of steps shows the progress:

StepMeaning
Encoded (blob ID …)The file was split into slivers in your browser and its blob ID is known. Nothing has been paid yet.
Using storage space already paid in your wallet…A deleted blob left paid space in your wallet, and this file fits in it: you only pay the write fee (and the missing epochs, if any). See Concepts.
Reusing an unfinished registration of this blob…You had already paid for this same file and the store did not finish: that payment is reused.
Registered and paid: …The first transaction went through. The blob exists in your wallet, not yet certified.
Storage nodes confirmed N shardsThe nodes received the slivers and signed. More than two thirds of the 100 shards are needed.
<node> did not confirm: …One node failed (in red). It does not stop the store as long as enough others confirm.
The epoch changed to N: asking the storage nodes againAn epoch ended during the upload. The app asks for fresh confirmations; nothing is paid again.
Certified on IOTAThe second transaction went through. The blob is available.

The result​

When it finishes, the result box shows:

  • the name of the file;
  • the blob ID: the identifier of the content, with a button to copy it. Anyone with it can read the file;
  • Read it from the aggregator: a link to the file at the public aggregator, https://aggregator.iotastorage.com/v1/blobs/<blob ID>. The aggregator serves it as a download; to show it in a browser as a web page, publish a site instead;
  • until when it is stored, until <date> (epoch N), and what the storage cost (gas aside).

The blob also appears in the list Blobs in your wallet, where you can renew it, delete it or check its status. See Manage your blobs.

What it costs​

Storage is priced per unit of encoded size and epoch, so the cost grows with the size of the file and the number of epochs. On testnet, with the current test prices:

File1 day (epoch)10 days53 days
Up to a few KB0.0003 IOTA0.0012 IOTA0.0055 IOTA
1 MiB0.0018 IOTA0.0072 IOTA0.033 IOTA
10 MiB0.0135 IOTA0.054 IOTA0.25 IOTA

Plus about 0.006 IOTA of gas for the two transactions. See Economics.

Good to know​

  • Everything is public. Encrypt the file before storing it if it must stay private.
  • Same file, same blob ID. Storing the same bytes twice gives the same blob ID and a second Blob object. Each object pays its own storage.
  • If the store stops halfway (you close the tab, the connection drops), the blob shows as not certified in the list. Store the same file again: the app reuses the registration you paid for. If the nodes already have the data, the Certify button in the list finishes it without uploading anything.
  • Many small files are cheaper together: publish them as a site, where they are packed into quilts.