Get the decrypted file content of a file within a files block
ID of the target block
Index of the target file (defaults to '0')
Path of the target file under the index (e.g., 'small')
The file contents as an arrayBuffer (for a blob, use file.content()
)
Get the metadata of a file within a files block
ID of the target block
Index of the target file (defaults to '0')
Path of the target file under the index (e.g., 'small')
The file contents as an arrayBuffer (for a blob, use file.meta()
)
Ignores a block by its ID
ID of the block
The added ignore block
Get a paginated array of files.
Thread ID (can also use ‘default’). Omit for all
Offset ID to start listing from. Omit for latest
List page size (default 5)
An array of Block objects
Retrieves a block by ID
ID of the target block
The block object
Blocks is an API module for managing Textile blocks
Blocks are the raw components in a thread. Think of them as an append-only log of thread updates where each update is hash-linked to its parent(s). New / recovering peers can sync history by simply traversing the hash tree.
There are several block types:
{API}