TON Storage FAQ
How to assign a TON domain to a TON Storage bag
- Upload your bag of filesto the network and copy the bag ID.
- Open Google Chrome on your computer.
- Install a TON extension:
- Open the extension, click "Import wallet", and import the wallet that owns the domain using your recovery phrase.
- Go to dns.ton.org, open your domain, and click "Edit".
- Paste the bag ID into the "Storage" field and click "Save".
How to host static TON site in TON Storage
- Create a bag from the folder containing your static website.
- The folder must contain an
index.html
file. - Upload the bag to the network and copy the bag ID.
- Open Google Chrome and install a TON extension or MyTonWallet.
- Import the wallet that owns the domain using your recovery phrase.
- Go to dns.ton.org, open your domain, and click "Edit".
- Paste the bag ID into the "Site" field, select "Host in TON Storage", and click "Save".
How to migrate TON NFT content to TON Storage
If you're using a standard NFT contract, update the content prefix by sending a message to your NFT collection smart contract from the collection owner's wallet.
- Old URL prefix example:
https://mysite/my_collection/
- New URL prefix format:
tonstorage://my_bag_id/
.
How to assign a TON domain to a TON Storage bag (low-level)
You need to assign the following value to the sha256("storage") DNS Record of your TON domain:
dns_storage_address#7473 bag_id:uint256 = DNSRecord;
How to host static TON site in TON Storage (low-level)
To host a static site via TON Storage directly:
- Create a bag from your website folder. The folder must include
index.html
. - Assign the following value to the DNS record with key sha256("site"):
dns_storage_address#7473 bag_id:uint256 = DNSRecord;
Was this article useful?