Interface IPFSExtendPinPayload

Payload for IPFS_EXTEND_PIN operation

Extends the expiration time of an existing pin. User pays additional cost based on the extension duration.

interface IPFSExtendPinPayload {
    additionalDuration:
        | number
        | "permanent"
        | "week"
        | "month"
        | "quarter"
        | "year";
    cid: string;
    custom_charges?: CustomCharges;
    operation: "IPFS_EXTEND_PIN";
}

Properties

additionalDuration:
    | number
    | "permanent"
    | "week"
    | "month"
    | "quarter"
    | "year"

Additional duration to add

  • Preset string: 'week' | 'month' | 'quarter' | 'year'
  • Custom number: additional duration in seconds (min 1 day, max 10 years) Note: 'permanent' converts the pin to never expire
cid: string

Content Identifier of the pin to extend

custom_charges?: CustomCharges

Optional custom charges configuration (from ipfsQuote)

operation

The IPFS operation type