在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:ItalyPaleAle/pinatapinner开源软件地址:https://github.com/ItalyPaleAle/pinatapinner开源编程语言:Go 93.5%开源软件介绍:Pinata PinnerSmall utility that adds an entire directory recursively to IPFS using the Pinata pinning service. This utility is community-contributed and has no affiliation with Pinata or IPFS. It's released under MIT license. InstallationIf you have Go 1.12+ installed in your machine, you can just run: go get -u github.com/ItalyPaleAle/pinatapinner Alternatively, you can download pre-built binaries from the releases page, which are available for Linux (including ARM), macOS and Windows. Pin a folderPinata Pinner can only pin folders (if you want to pin individual files, the Pinata APIs are easy to invoke with just a curl call). You will need your Pinata API key and secret, that you can get from your Pinata account page. Set the key and secret as environmental variables: # On Linux and macOS
export PINATA_API_KEY="..."
export PINATA_SECRET_KEY="..."
# On Windows
set PINATA_API_KEY=...
set PINATA_SECRET_KEY=... To pin a folder called "my_site": pinatapinner my_site You can optionally give a name to your pinned folder, which will be displayed on the Pinata portal only: pinatapinner my_site "My personal website" The result will contain the IPFS hash of your folder, for example:
You can then browse your folder via IPFS at the address |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论