IpfsClient class

Checks if you are awesome. Spoiler: you are.

Constructors

IpfsClient({String? url = 'http://127.0.0.1:5001', String? authorizationToken})

Properties

authorizationToken String?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String?
getter/setter pair

Methods

ls({String? dir = "/"}) Future
List directories in the local mutable namespace. For more: https://docs.ipfs.io/reference/http/api/#api-v0-files-ls
mkdir({required String dir}) Future
Make a directory in IPFS For more: https://docs.ipfs.io/reference/http/api/#api-v0-files-mkdir
mv({required String oldPath, required String newPath}) Future
move a file/mv https://docs.ipfs.io/reference/http/api/#api-v0-files-mv
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read({required String dir}) Future
Read a file in a given MFS. For more: https://docs.ipfs.io/reference/http/api/#api-v0-files-read
remove({required String dir}) Future
Remove a file/dir https://docs.ipfs.io/reference/http/api/#api-v0-files-rm
stat({required String dir, Map<String, dynamic> params = const {}}) Future
Display file status. For more: https://docs.ipfs.io/reference/http/api/#api-v0-files-stat
toString() String
A string representation of this object.
inherited
write({required String dir, required String filePath, String fileName = ""}) Future
Write to a file in a given filesystem. For more: https://docs.ipfs.io/reference/http/api/#api-v0-files-write

Operators

operator ==(Object other) bool
The equality operator.
inherited