ResQ.Storage
PinataOptions Class
Configuration options for the Pinata IPFS client.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.| Properties | |
|---|---|
| ApiKey | Gets or sets the Pinata API key for authentication. |
| ApiSecret | Gets or sets the Pinata API secret for authentication. |
| ApiUrl | Gets or sets the Pinata API endpoint URL. |
| GatewayUrl | Gets or sets the IPFS gateway URL for retrieving content. |
| JwtToken | Gets or sets the Pinata JWT token for authentication. |
| MaxFileSizeBytes | Gets or sets the maximum file size allowed for uploads. |
| MockMode | Gets or sets a value indicating whether to use mock mode for testing. |
| TimeoutSeconds | Gets or sets the HTTP request timeout in seconds. |