All URIs are relative to https://cardano-mainnet.blockfrost.io/api/v0
Method | HTTP request | Description |
---|---|---|
getPool | GET /pools/{pool_id} | Specific stake pool |
getPoolBlocks | GET /pools/{pool_id}/blocks | Stake pool blocks |
getPoolDelegators | GET /pools/{pool_id}/delegators | Stake pool delegators |
getPoolHistory | GET /pools/{pool_id}/history | Stake pool history |
getPoolMetadata | GET /pools/{pool_id}/metadata | Stake pool metadata |
getPoolRelays | GET /pools/{pool_id}/relays | Stake pool relays |
getPoolUpdates | GET /pools/{pool_id}/updates | Stake pool updates |
getPools | GET /pools | List of stake pools |
getRetiredPools | GET /pools/retired | List of retired stake pools |
getRetiringPools | GET /pools/retiring | List of retiring stake pools |
open class func getPool(poolId: String, completion: @escaping (_ data: Pool?, _ error: Error?) -> Void)
Specific stake pool
Pool information.
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import BlockfrostSwift
let poolId = "poolId_example" // String | Bech32 or hexadecimal pool ID.
// Specific stake pool
CardanoPoolsAPI.getPool(poolId: poolId) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Name | Type | Description | Notes |
---|---|---|---|
poolId | String | Bech32 or hexadecimal pool ID. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func getPoolBlocks(poolId: String, count: Int? = nil, page: Int? = nil, order: SortOrder? = nil, completion: @escaping (_ data: [String]?, _ error: Error?) -> Void)
Stake pool blocks
List of stake pools blocks.
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import BlockfrostSwift
let poolId = "poolId_example" // String | Bech32 or hexadecimal pool ID.
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)
// Stake pool blocks
CardanoPoolsAPI.getPoolBlocks(poolId: poolId, count: count, page: page, order: order) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Name | Type | Description | Notes |
---|---|---|---|
poolId | String | Bech32 or hexadecimal pool ID. | |
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] |
[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 getPoolDelegators(poolId: String, count: Int? = nil, page: Int? = nil, order: SortOrder? = nil, completion: @escaping (_ data: [PoolDelegator]?, _ error: Error?) -> Void)
Stake pool delegators
List of current stake pools delegators.
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import BlockfrostSwift
let poolId = "poolId_example" // String | Bech32 or hexadecimal pool ID.
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)
// Stake pool delegators
CardanoPoolsAPI.getPoolDelegators(poolId: poolId, count: count, page: page, order: order) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Name | Type | Description | Notes |
---|---|---|---|
poolId | String | Bech32 or hexadecimal pool ID. | |
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 getPoolHistory(poolId: String, count: Int? = nil, page: Int? = nil, order: SortOrder? = nil, completion: @escaping (_ data: [PoolHistory]?, _ error: Error?) -> Void)
Stake pool history
History of stake pool parameters over epochs.
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import BlockfrostSwift
let poolId = "poolId_example" // String | Bech32 or hexadecimal pool ID.
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)
// Stake pool history
CardanoPoolsAPI.getPoolHistory(poolId: poolId, count: count, page: page, order: order) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Name | Type | Description | Notes |
---|---|---|---|
poolId | String | Bech32 or hexadecimal pool ID. | |
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 getPoolMetadata(poolId: String, completion: @escaping (_ data: AnyOfpoolMetadataobject?, _ error: Error?) -> Void)
Stake pool metadata
Stake pool registration metadata.
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import BlockfrostSwift
let poolId = "poolId_example" // String | Bech32 or hexadecimal pool ID.
// Stake pool metadata
CardanoPoolsAPI.getPoolMetadata(poolId: poolId) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Name | Type | Description | Notes |
---|---|---|---|
poolId | String | Bech32 or hexadecimal pool ID. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func getPoolRelays(poolId: String, completion: @escaping (_ data: [PoolRelay]?, _ error: Error?) -> Void)
Stake pool relays
Relays of a stake pool.
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import BlockfrostSwift
let poolId = "poolId_example" // String | Bech32 or hexadecimal pool ID.
// Stake pool relays
CardanoPoolsAPI.getPoolRelays(poolId: poolId) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Name | Type | Description | Notes |
---|---|---|---|
poolId | String | Bech32 or hexadecimal pool ID. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func getPoolUpdates(poolId: String, count: Int? = nil, page: Int? = nil, order: SortOrder? = nil, completion: @escaping (_ data: [PoolUpdat]?, _ error: Error?) -> Void)
Stake pool updates
List of certificate updates to the stake pool.
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import BlockfrostSwift
let poolId = "poolId_example" // String | Bech32 or hexadecimal pool ID.
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)
// Stake pool updates
CardanoPoolsAPI.getPoolUpdates(poolId: poolId, count: count, page: page, order: order) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Name | Type | Description | Notes |
---|---|---|---|
poolId | String | Bech32 or hexadecimal pool ID. | |
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 getPools(count: Int? = nil, page: Int? = nil, order: SortOrder? = nil, completion: @escaping (_ data: [String]?, _ error: Error?) -> Void)
List of stake pools
List of registered stake pools.
// 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 numbers of pools per 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 of stake pools
CardanoPoolsAPI.getPools(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 numbers of pools per 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] |
[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 getRetiredPools(count: Int? = nil, page: Int? = nil, order: SortOrder? = nil, completion: @escaping (_ data: [PoolListRetire]?, _ error: Error?) -> Void)
List of retired stake pools
List of already retired pools.
// 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 numbers of pools per 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 of retired stake pools
CardanoPoolsAPI.getRetiredPools(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 numbers of pools per 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 getRetiringPools(count: Int? = nil, page: Int? = nil, order: SortOrder? = nil, completion: @escaping (_ data: [PoolListRetire]?, _ error: Error?) -> Void)
List of retiring stake pools
List of stake pools retiring in the upcoming epochs
// 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 of retiring stake pools
CardanoPoolsAPI.getRetiringPools(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]