> This page is for Taurus PROTECT, version v3.38.
> For other versions, use one of these documentation indexes:
> - v3.58 (default): https://taurushq.ferndocs.com/protect-capital/v3.58/llms.txt
> - v3.56: https://taurushq.ferndocs.com/protect-capital/v3.56/llms.txt
> - v3.54: https://taurushq.ferndocs.com/protect-capital/v3.54/llms.txt
> - v3.52: https://taurushq.ferndocs.com/protect-capital/v3.52/llms.txt
> - v3.50: https://taurushq.ferndocs.com/protect-capital/v3.50/llms.txt
> - v3.48: https://taurushq.ferndocs.com/protect-capital/v3.48/llms.txt
> - v3.46: https://taurushq.ferndocs.com/protect-capital/v3.46/llms.txt
> - v3.44: https://taurushq.ferndocs.com/protect-capital/v3.44/llms.txt
> - v3.42: https://taurushq.ferndocs.com/protect-capital/v3.42/llms.txt
> - v3.40: https://taurushq.ferndocs.com/protect-capital/v3.40/llms.txt
> - v3.38: https://taurushq.ferndocs.com/protect-capital/v3.38/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://taurushq.ferndocs.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://taurushq.ferndocs.com/_mcp/server.

# Creating An Atom Staking Request

## Basic Description

This endpoint is used to create a Staking Request in Taurus-PROTECT in the Cosmos Ecosystem.\
To understand what Staking is, please refer to the following [page](/user-guides/docs/staking) in the Taurus User Guides.

This endpoint would accept a POST Request with a JSON payload containing the Staking Request details.

The `amount` , `fromAddressId` , and `toValidatorAddressId`are the three required parameters that must be included within the JSON payload.

> **Warning**
>
> **Staking Amount for ATOM**
>
> It is important to note that in the Cosmos Ecosystem, **you are allowed to select the amount you want to stake**.

## Prerequisites

### Required Roles

Certain API endpoints require that the user has a specific role in order to access them. Roles are used to restrict access to certain functionality within the system and ensure that only authorized users are able to perform specific actions.

Here is the list of required Roles for this particular endpoint:

* RequestCreator
* TPUser

To find out more about roles, please refer to the following [page](/user-guides/docs/users-1#creating-a-new-user) in the Taurus User Guides.

### Required Input Parameters

Certain API endpoints require specific input parameters. Here is the list of Required Input Parameters for this particular endpoint:

* **fromAddressId** : the originating Address
* **amount** : the amount you would like to use for Staking
* **toValidatorAddressId** : the destination Validator Address used for Staking

> **Note**
>
> **Preconditions**
>
> It is important to note that the selected Addresses needs to pre-exist and be active in the system. In addition, the originating Address cannot have a zero balance for the Staking Request to succeed.

## Call Example

You can find a basic example in cURL below.\
Please note that you will need to update the `BASEURL` and the `APITOKEN` for the command to function.\
In this example, Taurus-PROTECT has created a new Staking Request from Address 436470 to Validator Address 1808 with 1 ATOM as the specified amount and has assigned it a unique ID of 4235155.

**`cURL`**

```curl cURL
export BASEURL=https://taurus-protect-instance.com
export APIToken=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiZXh0ZXJuYWxVc2VySUQiOiJ0ZWFtMUV4dGVybmFsVXNlcklEIiwidGVuYW50SUQiOjEsImNhcGl0YWxUZW5hbnRJRCI6MSwiZmlyc3RuYW1lIjoiSm9obiIsImxhc3RuYW1lIjoiRG9lIiwicm9sZXMiOlsidHB1c2VyIl0sImVtYWlsIjoidGVhbTFAYmFuay5jb20iLCJ1c2VybmFtZSI6InRlYW0xIiwiand0X3JlbmV3YWJsZV9hbW91bnQiOjAsImlzX3RvdHBfZW5hYmxlZCI6ZmFsc2UsImF1dGhfc3RhdHVzIjoiU1VDQ0VTUyIsImxhc3RfbG9naW4iOiIyMDIzLTAxLTAxVDAwOjAwOjAwLjE0OTc0NDIzMloiLCJsb2dnZWRfaW5fd2l0aF9zc28iOmZhbHNlLCJrZXkiOiIiLCJleHAiOjE2ODEyMTkyNzYsImlhdCI6MTY4MTIxNzQ3Nn0.K_85arIrigpkN1yHttCydpeT6oVg2c6PyQnuji907Og
curl --location "$BASEURL/api/rest/v1/requests/outgoing/cosmos/delegate" \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header "Authorization: Bearer $APIToken" \
--data '{
  "fromAddressId": "436470",
  "amount": "100000",
  "toValidatorAddressId": "1808"
}'
```

This piece of code sends a POST request to  [https://your-protect-instance.example.com/api/rest/v1/requests/outgoing/cosmos/delegate](https://your-protect-instance.example.com/api/rest/v1/requests/outgoing/cosmos/delegate) with the JSON string in the request body.

> **Tip**
>
> **Call Result**
>
> A successful response for the POST call to create a Staking Request for ATOM might look like this:

```json
{
    "result": {
        "approvers": {
            "parallel": [
                {
                    "sequential": [
                        {
                            "externalGroupID": "team1",
                            "minimumSignatures": 1
                        }
                    ]
                },
                {
                    "sequential": [
                        {
                            "externalGroupID": "team2",
                            "minimumSignatures": 1
                        }
                    ]
                }
            ]
        },
        "currency": "ATOM",
        "currencyInfo": {
            "blockchain": "Cosmos",
            "decimals": "6",
            "displayName": "Cosmos - ATOM",
            "enabled": true,
            "hasStaking": true,
            "id": "4fb517ca989362d75b090610744a685d3791ef0d11637a97fddfe77095207a87",
            "isAccountBased": true,
            "isToken": true,
            "name": "Atom",
            "network": "cosmoshub",
            "symbol": "ATOM",
            "type": "token"
        },
        "envelope": "Cgc0MjM4NzI5END9vYO2v+itFxgSKrAKCDQShgIKZAoLY29zbW9zaHViLTQSGQoTbS80NCcvMTE4Jy8xJy8wJy8wJxjUmVUYmtQPIgV1YXRvbSoCGQ5KKzQzNjQ3MDpiYTdjNDAwOC02NDk5LTRmOGEtODdmMS05MGVkYzRhNzBlNGYSnQEKIy9jb3Ntb3Muc3Rha2luZy52MWJldGExLk1zZ0RlbGVnYXRlEnYKLWNvc21vczE1d3NtanJxamZsZTNkaHBhcGxtOWY5cHB5eWxodDBsOXg3dGdxORI0Y29zbW9zdmFsb3BlcjF0ZmxrMzBtcTV2Z3FqZGx5OTJra2hocTNyYWV2MmhuejZlZXRlMxoPCgV1YXRvbRIGMTgwMDAwIhcKCnJlcXVlc3RfaWQQARoHNDIzODcyOSKEAQoJcnVsZXNfa2V5EAEadUNvc21vcy9UYXVydXMvY29zbW9zLnN0YWtpbmcudjFiZXRhMS5Nc2dEZWxlZ2F0ZShkZWxlZ2F0b3JfYWRkcmVzcyMxOnN0cmluZyx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AwPqGiIUCglmZWVfZGVub20QARoFdWF0b20iEQoJZmVlX2xpbWl0EAIaAksqIhwKEWlzX2NhbmNlbF9yZXF1ZXN0EAEaBWZhbHNlIkIKD3RyYW5zYWN0aW9uX2lkcxAGGi0KKzQzNjQ3MDpiYTdjNDAwOC02NDk5LTRmOGEtODdmMS05MGVkYzRhNzBlNGY6CWNvc21vc2h1Yg==",
        "id": "4238729",
        "rule": "rule = [source: any, validator: any, amount: any], approvals = ['team1': 1 sig|'team2': 1 sig]",
        "status": "CREATED",
        "tenantId": "1",
        "trails": [
            {
                "action": "created",
                "externalUserId": "team1@bank.com",
                "requestStatus": "CREATED",
                "userId": "11"
            },
            {
                "action": "approvers_assigned",
                "comment": "rule = [source: any, validator: any, amount: any], approvals = ['team1': 1 sig|'team2': 1 sig]",
                "externalUserId": "validator-core@taurusgroup.ch",
                "requestStatus": "CREATED",
                "userId": "1"
            }
        ],
        "type": "cosmos_delegate"
    }
}
```

Taurus-PROTECT responds with a JSON object containing the Staking Request details, including the Request `status` and the newly assigned Request`id`.

## Requirements for Future Use

For this particular endpoint, we need to store the Request`id` as it will be required in the next step where we will sign the Staking Request.

You can find the Swagger-generated page for this endpoint in the following [link](/protect-capital/v3.38/reference/requests-cosmos/create-outgoing-delegate-request).