Skip to main content

ResQ.Storage.PinataClient

PinataClient.IsPinnedAsync(string, CancellationToken) Method

Checks if a CID is currently pinned.

Parameters

cid System.String The IPFS Content Identifier to check. cancellationToken System.Threading.CancellationToken Cancellation token for the operation. Implements IsPinnedAsync(string, CancellationToken)

Returns

System.Threading.Tasks.Task<System.Boolean>
True if the CID is pinned; false otherwise.

Exceptions

System.ArgumentNullException
Thrown when cid is null or empty.
System.OperationCanceledException
Thrown when the operation is cancelled.

Example

Remarks

A pinned CID is guaranteed to remain available on the IPFS network. Unpinned content may be garbage collected by IPFS nodes.