ResQ.Storage
IStorageClient Interface
Interface for IPFS storage operations via Pinata.↳ PinataClient
Example
Remarks
This interface defines the contract for storing and retrieving files on IPFS through the Pinata pinning service. Implementations handle the HTTP communication with Pinata’s API, authentication, and error handling. Files uploaded through this interface are automatically pinned to ensure they remain available on the IPFS network. The CID returned can be used to retrieve the file from any IPFS gateway.| Methods | |
|---|---|
| GetAsync(string, CancellationToken) | Retrieves file content by its IPFS CID. |
| GetGatewayUrl(string) | Gets the gateway URL for accessing content by CID. |
| IsPinnedAsync(string, CancellationToken) | Checks if a CID is currently pinned. |
| ListPinsAsync(string, int, CancellationToken) | Lists pinned files with optional name prefix filtering. |
| UnpinAsync(string, CancellationToken) | Unpins a file from Pinata. |
| UploadAsync(byte[], string, string, Dictionary<string,string>, CancellationToken) | Uploads binary data to IPFS and pins it. |
| UploadAsync(Stream, string, string, Dictionary<string,string>, CancellationToken) | Uploads a file stream to IPFS and pins it. |