Skip to main content
POST
/
stakings
/
protocols
/
babylon
/
airdrops
/
registrations
import cobo_waas2
from cobo_waas2.models.create_babylon_airdrop_registration201_response import (
    CreateBabylonAirdropRegistration201Response,
)
from cobo_waas2.models.create_babylon_airdrop_registration_request import (
    CreateBabylonAirdropRegistrationRequest,
)
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)
    create_babylon_airdrop_registration_request = (
        cobo_waas2.CreateBabylonAirdropRegistrationRequest()
    )

    try:
        # Register for Babylon airdrop
        api_response = api_instance.create_babylon_airdrop_registration(
            create_babylon_airdrop_registration_request=create_babylon_airdrop_registration_request
        )
        print("The response of StakingsApi->create_babylon_airdrop_registration:\n")
        pprint(api_response)
    except Exception as e:
        print(
            "Exception when calling StakingsApi->create_babylon_airdrop_registration: %s\n"
            % e
        )

{
  "registration_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479"
}
import cobo_waas2
from cobo_waas2.models.create_babylon_airdrop_registration201_response import (
    CreateBabylonAirdropRegistration201Response,
)
from cobo_waas2.models.create_babylon_airdrop_registration_request import (
    CreateBabylonAirdropRegistrationRequest,
)
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)
    create_babylon_airdrop_registration_request = (
        cobo_waas2.CreateBabylonAirdropRegistrationRequest()
    )

    try:
        # Register for Babylon airdrop
        api_response = api_instance.create_babylon_airdrop_registration(
            create_babylon_airdrop_registration_request=create_babylon_airdrop_registration_request
        )
        print("The response of StakingsApi->create_babylon_airdrop_registration:\n")
        pprint(api_response)
    except Exception as e:
        print(
            "Exception when calling StakingsApi->create_babylon_airdrop_registration: %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.

Body

application/json

The request body to register for the Babylon airdrop.

btc_address
Stake from MPC Wallets · object

The Bitcoin (BTC) address that was used for staking.

babylon_address
Stake from MPC Wallets · object

The Babylon address used to receive the airdrop.

Response

Airdrop registration created successfully

registration_id
string

The registration ID, a unique identifier for tracking the airdrop registration request. You can check the registration status with the Get Babylon airdrop registration details operation.

Example:

"f47ac10b-58cc-4372-a567-0e02b2c3d479"