| title | @ipfs |
|---|
Upload text content to IPFS and return the CID.
Returns: string
@ipfs(text)
| Name | Type | Description |
|---|---|---|
text |
string |
Content to upload |
# Upload text to IPFS
set $cid @ipfs("hello world")
Content is pinned byte-exact as plain text, so the CID addresses exactly the
text you uploaded — a pinned module file can be loaded directly with
load --from.
- @ens:contenthash — encode IPFS hash for ENS