All URIs are relative to https://cardano-mainnet.blockfrost.io/api/v0
Method | HTTP request | Description |
---|---|---|
getPinList | GET /ipfs/pin/list/ | List pinned objects |
getPinListByIpfsPath | GET /ipfs/pin/list/{IPFS_path} | Get details about pinned object |
pinAdd | POST /ipfs/pin/add/{IPFS_path} | Pin an object |
removePin | POST /ipfs/pin/remove/{IPFS_path} |
open class func getPinList(count: Int? = nil, page: Int? = nil, order: SortOrder? = nil, completion: @escaping (_ data: [InlineResponse2005]?, _ error: Error?) -> Void)
List pinned objects
List objects pinned to local storage
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import BlockfrostSwift
let count = 987 // Int | The number of results displayed on one page. (optional) (default to 100)
let page = 987 // Int | The page number for listing the results. (optional) (default to 1)
let order = "order_example" // SortOrder | The ordering of items from the point of view of the blockchain, not the page listing itself. By default, we return oldest first, newest last. (optional) (default to .asc)
// List pinned objects
IPFSPinsAPI.getPinList(count: count, page: page, order: order) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Name | Type | Description | Notes |
---|---|---|---|
count | Int | The number of results displayed on one page. | [optional] [default to 100] |
page | Int | The page number for listing the results. | [optional] [default to 1] |
order | SortOrder | The ordering of items from the point of view of the blockchain, not the page listing itself. By default, we return oldest first, newest last. | [optional] [default to .asc] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func getPinListByIpfsPath(iPFSPath: String, completion: @escaping (_ data: InlineResponse2006?, _ error: Error?) -> Void)
Get details about pinned object
Get information about locally pinned IPFS object
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import BlockfrostSwift
let iPFSPath = "iPFSPath_example" // String |
// Get details about pinned object
IPFSPinsAPI.getPinListByIpfsPath(iPFSPath: iPFSPath) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Name | Type | Description | Notes |
---|---|---|---|
iPFSPath | String |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func pinAdd(iPFSPath: String, completion: @escaping (_ data: InlineResponse2004?, _ error: Error?) -> Void)
Pin an object
Pinned objects are counted in your user storage quota.
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import BlockfrostSwift
let iPFSPath = "iPFSPath_example" // String |
// Pin an object
IPFSPinsAPI.pinAdd(iPFSPath: iPFSPath) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Name | Type | Description | Notes |
---|---|---|---|
iPFSPath | String |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func removePin(iPFSPath: String, completion: @escaping (_ data: InlineResponse2007?, _ error: Error?) -> Void)
Remove pinned objects from local storage
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import BlockfrostSwift
let iPFSPath = "iPFSPath_example" // String |
IPFSPinsAPI.removePin(iPFSPath: iPFSPath) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Name | Type | Description | Notes |
---|---|---|---|
iPFSPath | String |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]