Safe Haskell | None |
---|---|
Language | Haskell2010 |
IPFS client functions
Synopsis
- ipfsAdd :: ( MonadError BlockfrostError m, MonadBlockfrost m) => FilePath -> m IPFSAdd
- ipfsGateway :: MonadBlockfrost m => Text -> m IPFSData
- ipfsGetPin :: MonadBlockfrost m => Text -> m IPFSPin
- ipfsListPins :: MonadBlockfrost m => m [ IPFSPin ]
- ipfsListPins' :: MonadBlockfrost m => Paged -> SortOrder -> m [ IPFSPin ]
- ipfsPin :: MonadBlockfrost m => Text -> m IPFSPinChange
- ipfsRemovePin :: MonadBlockfrost m => Text -> m IPFSPinChange
Documentation
ipfsAdd :: ( MonadError BlockfrostError m, MonadBlockfrost m) => FilePath -> m IPFSAdd Source #
Add a file or directory to IPFS
ipfsGateway :: MonadBlockfrost m => Text -> m IPFSData Source #
Fetch file via API
ipfsGetPin :: MonadBlockfrost m => Text -> m IPFSPin Source #
Get pinned object details
ipfsListPins :: MonadBlockfrost m => m [ IPFSPin ] Source #
List objects pinned to local storage
ipfsListPins' :: MonadBlockfrost m => Paged -> SortOrder -> m [ IPFSPin ] Source #
List objects pinned to local storage
Allows custom paging and ordering using
Paged
and
SortOrder
.
ipfsPin :: MonadBlockfrost m => Text -> m IPFSPinChange Source #
Pin an object
ipfsRemovePin :: MonadBlockfrost m => Text -> m IPFSPinChange Source #
Remove pinned object from local storage