BitTorrent File System (BTFS) is a next-generation file-sharing protocol utilizing the TRON network and the BitTorrent ecosystem.
Metadata is the detailed information of the NFT token. It is stored off the chain. Generally, the issuance of an NFT token will specify a URI path that points to the Metadata data of the token.
Refer to BTFS Installation Instructions.
Uploading files to the BTFS network requires BTT as the payment method.
The current storage price is 0.0037 BTT/Mb/month. For the uploader, redundant information will be added to the uploaded file and split into 30 copies. Any ten copies can be restored into a complete file so that each file will be uploaded three times the original file size. That is, for the uploader, the price is 3*0.0037 BTT/Mb/month(about $0.000038/Mb/month, calculated with the current price).
btfs init to initialize the local node, the command will generate a TRON wallet account associated with the node. You can check the TRON address corresponding to the wallet through
First, you need to recharge some BTT to the node's TRON account and then transfer the BTT of the TRON account to the accounting system of the BTFS network.
Run the following command to set a password for the node wallet:
btfs wallet password **********
Running the following command will transfer the BTT of the local BTFS node account to the accounting system of the BTFS network. The minimum transfer amount is 10 BTT, and the BTT unit specified in the following command is μBTT (1/1000000 of BTT):
btfs wallet deposit -p ********* 10000000
btfs add --chunker=reed-solomon coral.jpeg
QmUK9nwtLEiHBJ48HAZHNmSQ53U6ADbRhATxs2tomadwKw in the picture is the hash value of the file.
btfs storage upload QmUK9nwtLEiHBJ48HAZHNmSQ53U6ADbRhATxs2tomadwKw
When you see "File storage successful" in the window of
btfs daemon, it means the upload is successful
Open the following link of the picture in the browser, you can see the picture indicating that the picture can be downloaded successfully:
You can use the image link above to construct metadata for NFT.
Create a JSON file according to the metadata example in the TRC-721 document and name it coral.json, and replace the description value in the image field with the BTFS download link of the image above, as shown in the figure:
Run the btfs command to upload coral.json:
Open the URI of the metadata file in the browser:
Updated 6 months ago