Skip to main content
GET
/
stakings
/
pools
/
{pool_id}
import cobo_waas2
from cobo_waas2.models.pool_details import PoolDetails
from cobo_waas2.rest import ApiException
from pprint import pprint

# See configuration.py for a list of all supported configurations.
configuration = cobo_waas2.Configuration(
    # Replace `<YOUR_PRIVATE_KEY>` with your private key
    api_private_key="<YOUR_PRIVATE_KEY>",
    # Select the development environment. To use the production environment, change the URL to https://api.cobo.com/v2.
    host="https://api.dev.cobo.com/v2",
)
# Enter a context with an instance of the API client
with cobo_waas2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = cobo_waas2.StakingsApi(api_client)
    pool_id = "babylon_btc"

    try:
        # Get staking pool details
        api_response = api_instance.get_staking_pool_by_id(pool_id)
        print("The response of StakingsApi->get_staking_pool_by_id:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling StakingsApi->get_staking_pool_by_id: %s\n" % e)

{
  "id": "babylon_btc",
  "chain_id": "Bitcoin",
  "protocol": "Babylon",
  "protocol_icon_url": "https://example.com/icon.png",
  "supported_wallet_types": [
    "MPC"
  ],
  "supported_wallet_subtypes": [
    "Org-Controlled"
  ],
  "token_id": "BTC",
  "est_apr": 0.05,
  "pool_type": "Babylon",
  "min_amount": "0.01",
  "max_amount": "100.00",
  "min_stake_period": 30,
  "max_stake_period": 1000,
  "min_stake_blocks": 100,
  "max_stake_blocks": 1000,
  "validators_info": [
    {
      "pool_type": "Babylon",
      "icon_url": "https://example.com/icon.png",
      "name": "Cobo",
      "priority": 0,
      "public_key": "eca1b104dce16c30705f4147a9c4a373ac88646c5d1bcda6a89c018940cb96a0",
      "commission_rate": 0.1,
      "supported_pos_chains": [
        "Babylon",
        "Cosmos",
        "Ethereum"
      ]
    }
  ]
}
import cobo_waas2
from cobo_waas2.models.pool_details import PoolDetails
from cobo_waas2.rest import ApiException
from pprint import pprint

# See configuration.py for a list of all supported configurations.
configuration = cobo_waas2.Configuration(
    # Replace `<YOUR_PRIVATE_KEY>` with your private key
    api_private_key="<YOUR_PRIVATE_KEY>",
    # Select the development environment. To use the production environment, change the URL to https://api.cobo.com/v2.
    host="https://api.dev.cobo.com/v2",
)
# Enter a context with an instance of the API client
with cobo_waas2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = cobo_waas2.StakingsApi(api_client)
    pool_id = "babylon_btc"

    try:
        # Get staking pool details
        api_response = api_instance.get_staking_pool_by_id(pool_id)
        print("The response of StakingsApi->get_staking_pool_by_id:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling StakingsApi->get_staking_pool_by_id: %s\n" % e)

Authorizations

BIZ-API-KEY
string
header
required

The API key. For more details, refer to API key.

In the API playground, enter your API secret, and your API key will be accordingly calculated.

Path Parameters

pool_id
string
required

The ID of the staking pool. A staking pool is a pairing of a staking protocol and a specific type of token. You can call List staking pools to retrieve a list of staking pools.

Response

A staking pool has been successfully retrieved.

The basic information of the staking pool. The detailed information about the staking protocol.

id
string
required

The ID of the staking pool. A staking pool is a pairing of a staking protocol and a specific type of token.

Example:

"babylon_btc"

chain_id
string
required

The chain ID.

Example:

"Bitcoin"

protocol
string
required

The name of the protocol.

Example:

"Babylon"

protocol_icon_url
string<url>
required

The URL of the protocol's icon.

Example:

"https://example.com/icon.png"

supported_wallet_types
enum<string>[]
required

The wallet type. Possible values include:

Example:
["MPC"]
supported_wallet_subtypes
enum<string>[]
required

The wallet subtype. Possible values include:

  • Asset: Custodial Wallets (Asset Wallets).
  • Web3: Custodial Wallets (Web3 Wallets).
  • Org-Controlled: MPC Wallets (Organization-Controlled Wallets).
  • User-Controlled: MPC Wallets (User-Controlled Wallets).
  • Safe{Wallet}: Smart Contract Wallets (Safe{Wallet}).
  • Main: Exchange Wallets (Main Account).
  • Sub: Exchange Wallets (Sub Account).
Example:
["Org-Controlled"]
token_id
string
required

The token ID.

Example:

"BTC"

est_apr
number
required

The estimated annual percentage rate (APR).

Example:

0.05

validators_info
object[]
required

A list of available validators.

pool_type
enum<string>

The type of the staking pool. Possible values are:

  • Babylon: Babylon staking pool
  • ETHBeacon: Ethereum Beacon Chain staking pool
  • CoreBTC: Core BTC staking pool
  • SkyFarm: SKY farm staking pool
  • BitHive: BitHive staking pool
  • BERABeacon: BERA Beacon Chain staking pool
  • BeraChainBGT: Bera Chain BGT staking pool
Available options:
Babylon,
ETHBeacon,
CoreBTC,
SkyFarm,
BitHive,
BERABeacon,
BeraChainBGT
Example:

"Babylon"

min_amount
string

The minimum amount that can be staked in one staking request.

Example:

"0.01"

max_amount
string

The maximum amount that can be staked in one staking request.

Example:

"100.00"

min_stake_period
integer

The minimum staking period, in days.

Example:

30

max_stake_period
integer

The maximum staking period, in days.

Example:

1000

min_stake_blocks
integer

The minimum block number. A block number indicates the number of blocks that need to be processed before the locked tokens are unlocked and become accessible.

Example:

100

max_stake_blocks
integer

The maximum block number. A block number indicates the number of blocks that need to be processed before the locked tokens are unlocked and become accessible.

Example:

1000