Payload for IPFS_PIN operation

Pins an existing CID to the sender's account. Used when content already exists on IPFS and user wants to ensure availability.

interface IPFSPinPayload {
    cid: string;
    duration?: number;
    metadata?: Record<string, unknown>;
    operation: "IPFS_PIN";
}

Properties

cid: string

Content Identifier to pin

duration?: number

Optional duration in blocks (0 = indefinite)

metadata?: Record<string, unknown>

Optional metadata to associate with the pin

operation

The IPFS operation type