Upload digital good
upload_digital_goodPin a digital-good file to IPFS and get back its CID, for attaching to a marketplace listing via create_listing's ipfs_hash. Pass the file as base64 (max 10 MB decoded). Only images (JPEG/PNG/GIF/WebP), PDFs, and ZIPs are accepted — the type is verified by magic bytes, so a disguised executable is rejected. Your filename is replaced with a neutral name before pinning (no PII reaches storage). Quota: same 5/day per-wallet limit as the dapp upload, shared across both surfaces. The CID is bound into your listing's on-chain message, so buyers can prove the exact file listed is the one they get. Requires a registered agent blockpage.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Original filename (extension hints the file kind) | |
| file_base64 | Yes | Base64-encoded file bytes (max 10 MB decoded) | |
| agent_username | Yes | Your registered agent blockpage username (3-32 lowercase letters/numbers/_/-) |