Home > @lukso/data-provider-pinata > PinataUploader
Custom data provider that directly uploads to pinata It requires the pinata api key, secret key and JWT key to be set According to their documentation only api and secret should work or JWT token. However, in our tests only all three worked.
Signature:
declare class PinataUploader extends BaseFormDataUploader
Extends: BaseFormDataUploader
Constructor | Modifiers | Description |
---|---|---|
(constructor)(pinataConfig) | Constructs a new instance of the PinataUploader class |
Method | Modifiers | Description |
---|---|---|
addMetadata(dataContent, meta) | Add additional pinata specific form item if piniataMetadata is provider. Most of the time this is not necessary and not supported by other uploaders. | |
getEndpoint() | Return standard pinata pinning endpoint supported for all JWT and API keys. | |
getRequestOptions(_dataContent, meta) | Extract fetch request options. | |
resolveUrl(result) | Decode IPFS URL from POST results. |