Assign a TON domain to a TON Storage bag
- Create and upload a bag and copy its bag ID
<BAG_ID>(64-character hex). - Open Google Chrome.
- Install a wallet browser extension:
- Import the wallet that owns the domain using the recovery phrase.
- Go to dns.ton.org, open the domain, and select Edit.
- Paste
<BAG_ID>into the Storage field and save.
Host a static TON Site from TON Storage
- Place the static site files in a folder that includes
index.html. - Create a bag from the folder and upload it. Copy the bag ID.
- Install TON Wallet or MyTonWallet in Chrome and import the domain owner’s wallet.
- Go to dns.ton.org, open the domain, and select Edit.
- Paste
<BAG_ID>into the Site field, choose Host in TON Storage, and save.
Migrate NFT content to TON Storage
For the standard NFT collection contract, update the content prefix by sending a message from the collection owner’s wallet to the collection contract.- Old prefix example:
https://mysite/my_collection/ - New prefix format:
tonstorage://<BAG_ID>/
Low-level DNS records for TON Storage
Assign a bag to the DNS record with keysha256("storage"):
sha256("site"):