---
updatedAt: 2026-04-21T07:20:03.000Z
---

# Delegate

This endpoint is to create an unsigned delegation transaction that can be broadcast to effect the delegation from the stake account to the Twinstake validator. For further information on the delegation and undelegation process please read the protocol's [staking guide](https://www.twinstake.io/resources/staking-guides).

# OpenAPI definition

```json
{
  "openapi": "3.1.1",
  "info": {
    "title": "Solana API",
    "description": "",
    "version": "2.0.0"
  },
  "servers": [
    {
      "url": "https://api.twinstake.io"
    }
  ],
  "paths": {
    "/v2/staking/solana/delegate": {
      "post": {
        "tags": [
          "delegate"
        ],
        "summary": "Delegate",
        "operationId": "api_v2_staking_solana_delegate_post",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DelegatePayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ActionResponse": {
        "properties": {
          "transaction": {
            "$ref": "#/components/schemas/TransactionResponse",
            "description": "Transaction response"
          }
        },
        "type": "object",
        "required": [
          "transaction"
        ],
        "title": "ActionResponse"
      },
      "DelegatePayload": {
        "properties": {
          "entity": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Entity",
            "description": "Entity"
          },
          "delegator_address": {
            "type": "string",
            "title": "Delegator Address",
            "description": "Delegator address"
          },
          "validator_address": {
            "type": "string",
            "title": "Validator Address",
            "description": "Validator address"
          },
          "stake_account_address": {
            "type": "string",
            "title": "Stake Account Address",
            "description": "Stake authority address"
          }
        },
        "type": "object",
        "required": [
          "delegator_address",
          "validator_address",
          "stake_account_address"
        ],
        "title": "DelegatePayload"
      },
      "TransactionResponse": {
        "properties": {
          "raw": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Raw",
            "description": "Raw JSON transaction built on Tendermint"
          },
          "hash": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Hash",
            "description": "Transaction hash"
          },
          "hex": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Hex",
            "description": "Transaction hex"
          },
          "status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Status",
            "description": "Transaction status",
            "default": "GENERATED"
          }
        },
        "type": "object",
        "title": "TransactionResponse"
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "description": "Fetch JWT token from Auth API",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    }
  ]
}
```