Skip to main content
GET
/
stakings
/
protocols
/
babylon
/
airdrops
/
registrations
/
{registration_id}
import cobo_waas2
from cobo_waas2.models.babylon_airdrop_registration import BabylonAirdropRegistration
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)
    registration_id = "registration_id_example"

    try:
        # Get Babylon airdrop registration details
        api_response = api_instance.get_babylon_airdrop_registration_by_id(
            registration_id
        )
        print("The response of StakingsApi->get_babylon_airdrop_registration_by_id:\n")
        pprint(api_response)
    except Exception as e:
        print(
            "Exception when calling StakingsApi->get_babylon_airdrop_registration_by_id: %s\n"
            % e
        )

{
  "id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
  "status": "Processing",
  "btc_address": {
    "source_type": "Org-Controlled",
    "wallet_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
    "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
  },
  "babylon_address": {
    "source_type": "Org-Controlled",
    "wallet_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
    "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
  },
  "airdrop_amount": "500.25",
  "error_message": "User rejected",
  "created_timestamp": 1677587333000,
  "updated_timestamp": 1677587400000
}
import cobo_waas2
from cobo_waas2.models.babylon_airdrop_registration import BabylonAirdropRegistration
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)
    registration_id = "registration_id_example"

    try:
        # Get Babylon airdrop registration details
        api_response = api_instance.get_babylon_airdrop_registration_by_id(
            registration_id
        )
        print("The response of StakingsApi->get_babylon_airdrop_registration_by_id:\n")
        pprint(api_response)
    except Exception as e:
        print(
            "Exception when calling StakingsApi->get_babylon_airdrop_registration_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

registration_id
string
required

The Babylon airdrop or Babylon Phase-2 registration ID. You can use the Register for Babylon airdrop or the Register for Babylon Phase-2 operation to get this information.

Response

Get airdrop registration details successfully

The details of a Babylon airdrop registration.

id
string

The registration ID, a unique identifier for tracking the airdrop registration.

Example:

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

status
enum<string>

The status of a Babylon airdrop or Babylon Phase-2 registration request. Possible values include:

  • Processing: The registration request is being processed.
  • Completed: The registration has been completed.
  • Failed: The registration failed.
Available options:
Processing,
Completed,
Failed
Example:

"Processing"

btc_address
object

The Bitcoin (BTC) address used for staking. The information about the staking source.

babylon_address
object

The Babylon address used for receiving the Babylon airdrop. The information about the staking source.

airdrop_amount
string

The actual airdrop amount allocated for this BTC address.

Example:

"500.25"

error_message
string

The detailed error message if the registration failed.

Example:

"User rejected"

created_timestamp
integer

The time when the registration was created, in Unix timestamp format, measured in milliseconds.

Example:

1677587333000

updated_timestamp
integer

The time when the registration was updated, in Unix timestamp format, measured in milliseconds.

Example:

1677587400000