View Source MyspaceIPFS.Api.Basic.Refs (Myspace IPFS v1.0.0-dev)
MyspaceIPFS.Api is where the main commands of the IPFS API reside.
Link to this section Summary
Link to this section Types
Type for the response of entries in the refs list.
Link to this section Functions
@spec local() :: mapped()
Get a list of all local references.
Response is a list of Refs.t().
@spec refs(path(), opts()) :: mapped()
Get a list of all references from a given object.
Response is a list of Refs.t().
parameters
Parameters
path: The IPFS path name of the object to list references from. opts: A list of options.
options
Options
https://docs.ipfs.tech/reference/kubo/rpc/#api-v0-refs
Options are passed as a list of maps with the following format:
[
format: "<string>",
edges: <bool>,
unique: <bool>,
recursive: <bool>,
max-depth: <int>
]