-
Notifications
You must be signed in to change notification settings - Fork 25
BlockFrostIPFS
• new BlockFrostIPFS(options?
)
Name | Type |
---|---|
options? |
Options |
• add: (this
: BlockFrostIPFS
, path
: string
) => Promise
<AddResponse
> = add
▸ (this
, path
): Promise
<AddResponse
>
Adds a file to IPFS
See
API docs for Add a file to IPFS
Remarks
You need to pin
an object to avoid it being garbage collected. This usage is being counted in your user account quota.
Name | Type | Description |
---|---|---|
this |
BlockFrostIPFS |
- |
path |
string |
path to the file |
Promise
<AddResponse
>
information about added ipfs object
• gateway: (this
: BlockFrostIPFS
, path
: string
) => Promise
<unknown
> = gateway
▸ (this
, path
): Promise
<unknown
>
Retrieve an object from the IPFS gateway
See
API docs for Relay to an IPFS gateway
Remarks
Useful if you do not want to rely on a public gateway, such as ipfs.blockfrost.dev.
Name | Type | Description |
---|---|---|
this |
BlockFrostIPFS |
- |
path |
string |
path to the file |
Promise
<unknown
>
the object content
• list: (this
: BlockFrostIPFS
, pagination?
: PaginationOptions
) => Promise
<ListResponse
> = list
▸ (this
, pagination?
): Promise
<ListResponse
>
List pinned IPFS resources.
See
API docs for List pinned objects
Name | Type | Description |
---|---|---|
this |
BlockFrostIPFS |
- |
pagination? |
PaginationOptions |
Optional, Pagination options |
Promise
<ListResponse
>
List of pinned IPFS objects
• listByPath: (this
: BlockFrostIPFS
, path
: string
) => Promise
<ListResponse
> = listByPath
▸ (this
, path
): Promise
<ListResponse
>
Obtains information about locally pinned IPFS object
See
API docs for Details about pinned object
Name | Type | Description |
---|---|---|
this |
BlockFrostIPFS |
- |
path |
string |
The path to the IPFS object (IPFS hash) |
Promise
<ListResponse
>
List of pinned IPFS objects
• pin: (this
: BlockFrostIPFS
, path
: string
) => Promise
<PinResponse
> = pin
▸ (this
, path
): Promise
<PinResponse
>
Pins the IPFS resource.
See
Remarks
IPFS pinning refers to the process of specifying data to be retained and persist on one or more IPFS nodes.
Name | Type | Description |
---|---|---|
this |
BlockFrostIPFS |
- |
path |
string |
path to the file |
Promise
<PinResponse
>
Pinned object
• pinRemove: (this
: BlockFrostIPFS
, path
: string
) => Promise
<string
> = pinRemove
▸ (this
, path
): Promise
<string
>
Removes pinned object from local storage
See
API docs for Remove a IPFS pin
Name | Type | Description |
---|---|---|
this |
BlockFrostIPFS |
- |
path |
string |
The path to the IPFS object (IPFS hash) |
Promise
<string
>
List of pinned IPFS objects