TON Storage FAQ
How to assign a TON domain to a TON Storage bag of files
-
Upload the bag of files to the network and get the Bag ID
-
Open the Google Chrome browser on your computer.
-
Install TON extension for Google Chrome. You can also use MyTonWallet.
-
Open the extension, click "Import wallet" and import the wallet that owns the domain, using the recovery phrase.
-
Now open your domain at https://dns.ton.org and click "Edit".
-
Copy your Bag ID into the "Storage" field and click "Save".
How to host static TON site in TON Storage
-
Create the Bag from folder with website files, upload it to the network and get the Bag ID. The folder must contain
index.html
file. -
Open the Google Chrome browser on your computer.
-
Install TON extension for Google Chrome. You can also use MyTonWallet.
-
Open the extension, click "Import wallet" and import the wallet that owns the domain, using the recovery phrase.
-
Now open your domain at https://dns.ton.org and click "Edit".
-
Copy your Bag ID into the "Site" field, select "Host in TON Storage" checkbox and click "Save".
How to migrate TON NFT content to TON Storage
If you used a standard NFT smart contract for your collection, you need to send a message to the collection smart contract from the collection owner's wallet with a new URL prefix.
As an example, if the url prefix used to be https://mysite/my_collection/
, the new prefix will be 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)
Create the Bag from folder with website files, upload it to the network and get the Bag ID. The folder must contain index.html
file.
You need to assign the following value to the sha256("site") DNS Record of your TON domain:
dns_storage_address#7473 bag_id:uint256 = DNSRecord;