Portal Community

add

Uploads binary content to IPFS via a multipart request and returns its CID. Binary input.

FieldTypeRequiredDefaultDescription
inputDataKeytextNodataKey in the upstream node's InputData holding the bytes to add.
dataModeselectNobase64base64 | text — how to decode inline/string content.
inlineContenttextNoInline content fallback (encoded per dataMode) when nothing is found under inputDataKey.
fileNametextNofileFile name recorded on the multipart part.
pinboolNotruePin the content after adding.
wrapWithDirectoryboolNofalseWrap the file in a directory listing.
chunkertextNoChunking algorithm, e.g. size-262144.
cidVersionintNo0CID version (0 or 1).
hashtextNoHash function, e.g. sha2-256.
onlyHashboolNofalseCompute the CID without actually adding the content to the repo.
nocopyboolNofalseReference filestore blocks instead of copying (filestore must be enabled on the daemon).

Example response:

{
  "cid": "QmXoypizjW3WknFiJnKLwHCnL72vedxjQkDDP1mXWo6uco",
  "name": "file",
  "size": "1024"
}

cat

Reads the raw bytes of a resolved IPFS path. Binary output.

FieldTypeRequiredDescription
pathtext✓ YesIPFS path to read, e.g. /ipfs/<cid> or a bare CID (also accepted under a cid alias). Missing → CFG_MISSING_PATH.
offsetint (long)NoByte offset to start reading from.
lengthint (long)NoMaximum number of bytes to return.

Output record carries the raw byte[] under data for downstream nodes.

get

Fetches a resolved path as a TAR archive (optionally gzip-compressed). Binary output.

FieldTypeRequiredDefaultDescription
pathtext✓ YesIPFS path to fetch. Missing → CFG_MISSING_PATH.
compressboolNofalseGzip-compress the TAR archive.
compressionLevelintNo-1Gzip compression level when compress=true.

ls

Lists the links under a directory CID.

FieldTypeRequiredDescription
pathtext✓ YesIPFS path to list. Missing → CFG_MISSING_PATH.

refs

Lists the CIDs referenced by a CID.

FieldTypeRequiredDefaultDescription
pathtext✓ YesIPFS path whose references to list. Missing → CFG_MISSING_PATH.
recursiveboolNofalseRecurse into referenced objects' own references.
uniqueboolNofalseDe-duplicate the reference list.
Binary I/O pattern: add is the input side (bytes resolved from inputDataKeyinlineContent fallback, decoded per dataMode) and cat/get are the output side (raw byte[] placed directly in the items record). This same input/output pattern repeats across dag/put, dag/export, block/put, block/get, and files/write/files/read — see Input & Output.