This project provides an API to pin a raw IPFS block with Pinata.
The official Pinata API unfortunately cannot do this, which is why this workaround is needed. This program accepts HTTP post
requests to /put_block
. The body of the request is interpreted as the raw bytes of an IPFS block. The block is sent to an IPFS node through the /api/v0/block/put
route in the RPC API. Then resulting CID is pinned with Pinata. The resulting CID is returned in the body of the response.
Use Github to create releases. This causes the release
Github action to run, which creates a statically linked x86_64-unknown-linux-musl binary and uploads it to the release. There is no need for a docker image.