Skip to content

cowprotocol/ipfs-block-put

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Release

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages