Constructors
constructor
- new IpfsUtil<T>(options: {
cid?: string;
rawData?: T;
}): IpfsUtil<T>
-
Parameters
-
options: {
cid?: string;
rawData?: T;
}
-
Optional
cid?: string
-
Optional
rawData?: T
Properties
Private
Optional
_cid
_cid?: string
Private
_cids
_cids: string[] = ...
Private
_ipfsApi
_ipfsApi: IPFSHTTPClient
Private
Optional
_rawData
_rawData?: T
Accessors
ipfsApi
- get ipfsApi(): IPFSHTTPClient
-
Returns IPFSHTTPClient
path
- get path(): string
-
Returns string
paths
- get paths(): string[]
-
Returns string[]
publicUrl
- get publicUrl(): string
-
Returns string
Methods
loadSelf
- loadSelf(): Promise<T>
-
Returns Promise<T>
uploadSelf
- uploadSelf(): Promise<void>
-
Returns Promise<void>