Pages

Wednesday, 5 April 2023

ipfs的公共网关

 

获取最新的可用网关

public-gateway-checker

ipfs 是什么,有什么用

你可以理解 ipfs 是一种可以复活的分享链接,当别人分享的文件成功的在 ipfs 网络中留存,只需要找到新的网关进行替换就可以复活无法打开的链接

当我们发现网址无法打开的时候。仅需要更换他人部署的可访问的 ipfs 网关地址(域名部分)即可重新复活这个文件。 比如将特征地址前面的网址进行替换

这个文件的特征是:QmP8jG5xo9LuZ9uwCJqzJSNh18UssHFEkTTUHKmzn7hVGZ

/ipfs/ 前面的网址进行替换,如将 crustwebsites.net 替换为hardbin.com 就可以正常访问了。这里只是演示,如替换后仍无法打开,更换其他可访问的域名部分即可。

 https://crustwebsites.net/ipfs/QmP8jG5xo9LuZ9uwCJqzJSNh18UssHFEkTTUHKmzn7hVGZ

替换为

https://hardbin.com/ipfs/QmP8jG5xo9LuZ9uwCJqzJSNh18UssHFEkTTUHKmzn7hVGZ

------------------------------

Congratulations! Your content has been published to the IPFS gateway. It is now reachable by any node on the IPFS network. Share the following URL to share the content:

https://hardbin.com/ipfs/QmQWYw2xFCQ3zn2dYFxRoAPxooSqwEt4f1mMoydKfn6vUL/#6ieS5tsUKZtsKvvxq4M1R9QPmnjtfvPzPkAsTwduUU6E

The IPFS hash is QmQWYw2xFCQ3zn2dYFxRoAPxooSqwEt4f1mMoydKfn6vUL and the decryption key is 6ieS5tsUKZtsKvvxq4M1R9QPmnjtfvPzPkAsTwduUU6E.

Content on IPFS is not persistent and will eventually disappear from the IPFS network if it is not pinned anywhere (equivalent to "seeding" in bittorrent). To make the content persistent, you can either pin it on an IPFS node you control:

$ ipfs pin add QmQWYw2xFCQ3zn2dYFxRoAPxooSqwEt4f1mMoydKfn6vUL

Or use a service like Pinata to pin it for you:

https://pinata.cloud/

 

No comments:

Post a Comment