Payload for IPFS_ADD operation

Uploads content to IPFS and automatically pins it to the sender's account. Content is base64 encoded for JSON compatibility.

interface IPFSAddPayload {
    content: string;
    filename?: string;
    metadata?: Record<string, unknown>;
    operation: "IPFS_ADD";
}

Properties

content: string

Base64-encoded content to upload

filename?: string

Optional filename for the content

metadata?: Record<string, unknown>

Optional metadata to associate with the pin

operation

The IPFS operation type