Interface AddOptionsWithCharges

Extended add options with custom charges support

interface AddOptionsWithCharges {
    customCharges?: {
        estimatedBreakdown?: IPFSCostBreakdown;
        maxCostDem: string;
    };
    filename?: string;
    metadata?: Record<string, unknown>;
}

Hierarchy (view full)

Properties

customCharges?: {
    estimatedBreakdown?: IPFSCostBreakdown;
    maxCostDem: string;
}

Optional custom charges configuration for cost control

Type declaration

  • OptionalestimatedBreakdown?: IPFSCostBreakdown

    Optional cost breakdown for reference

  • maxCostDem: string

    Maximum cost user agrees to pay (from ipfsQuote response)

filename?: string

Optional filename for the content

metadata?: Record<string, unknown>

Optional metadata to associate with the pin