Skip to main content

ResQ.Storage

PinataClient Class

Pinata IPFS client implementation of IStorageClient.
Inheritance System.Object → PinataClient Implements IStorageClient

Example

Remarks

This client provides integration with the Pinata IPFS pinning service, allowing files to be uploaded to IPFS and pinned for guaranteed availability. The client supports both JWT token and API key/secret authentication methods. When MockMode is enabled, the client generates fake CIDs using SHA256 hashes of the content without making actual API calls. This is useful for testing and development without consuming Pinata credits. The client is designed to be used with dependency injection and requires an System.Net.Http.HttpClient configured with appropriate base address and authentication headers.