Skip to main content

ResQ.Storage

PinataOptions Class

Configuration options for the Pinata IPFS client.
Inheritance System.Object → PinataOptions

Example

Remarks

This class provides configuration settings for the Pinata IPFS pinning service, including API endpoints, authentication credentials, and operational parameters. Authentication can be configured using either a JWT token (preferred) or API key/secret pair. If both are provided, the JWT token takes precedence. For development and testing, set MockMode to true to avoid making actual API calls. Configuration can be loaded from appsettings.json, environment variables, or code. Sensitive values like JWT tokens and API secrets should be stored securely (e.g., in environment variables or secret managers) and not committed to source control.