> ## Documentation Index
> Fetch the complete documentation index at: https://docs.validationcloud.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Stake Transaction

> Supplies a transaction that, once signed and broadcasted, facilitates the creation of stake validators.



## OpenAPI

````yaml staking/openapi/staking-api.yaml POST /v1/api/ethereum/{network}/stake_transaction
openapi: 3.0.3
info:
  title: Validation Cloud Staking API
  version: 1.0.0
servers:
  - url: https://ethereum-staking.sprd.validationcloud.io
security:
  - bearerAuth: []
paths:
  /v1/api/ethereum/{network}/stake_transaction:
    post:
      tags:
        - Staking
      description: >-
        Supplies a transaction that, once signed and broadcasted, facilitates
        the creation of stake validators.
      parameters:
        - name: network
          in: path
          required: true
          schema:
            type: string
            default: mainnet
            enum:
              - mainnet
              - hoodi
          description: The network
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StakeTransactionAPIRequest'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StakeTransactionAPIResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    StakeTransactionAPIRequest:
      properties:
        num_validators:
          example: 1
          type: integer
          description: The number of validators that will be created.
        wallet_address:
          example: 9.88865096163011e+49
          format: binary
          type: string
          description: >-
            The address of the wallet that will be used to pay for the
            transaction. The deposit and exit transactions for the validators
            must be signed by this wallet. Make absolutely sure not to lose
            possession of it.
        transaction_type:
          example: 2
          type: integer
          default: 0
          description: |-
            Type of the returned transaction.
            0 for legacy transactions.
            2 for EIP-1559 transactions.
      type: object
    StakeTransactionAPIResponse:
      properties:
        transaction:
          $ref: '#/components/schemas/Transaction'
        validator_keys:
          items:
            $ref: '#/components/schemas/ValidatorKey'
          type: array
      type: object
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
    Transaction:
      type: object
      properties:
        data:
          example: >-
            0x4f498c730000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000260000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000030b6f69f0e68fbbf1512af9c2b7d983be5adc6737212426ca97eb4e773858bcab8989712a927c8ee2f238ceb839dd4ba67000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000200100000000000000000000004cec5c275f89f6e091f0af5272b2a205a39a61b8000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000060ab3b820d0df8e892c54caa268c7bd9536c8889674999bd2f247ece9a893c2a047ff188f463d5ba89747f2f13dbf83c430f55b715a80975117a513fe7903683303e389eb610ff207e13e29df382f0e9a1e019e25980c9d227a44998ec13f589f600000000000000000000000000000000000000000000000000000000000000010714268a0278aff8c0a6f65a3125b920020450c02f63bb46475413b354c6444a
          format: binary
          type: string
          description: The data that will be sent to the contract.
        gas:
          example: 87936
          type: integer
          description: The amount of gas that will be used to execute the transaction.
        gas_price:
          example: '27'
          type: string
          description: The price of gas in Gwei.
        nonce:
          example: 35
          type: integer
          description: >-
            The nonce of the transaction. This is used to prevent replay
            attacks.
        to:
          example: '0x0ab8792f74261e83b1a3fe41c89017c359dcd52b'
          format: binary
          type: string
          description: The address of the contract that will be called.
        transaction_serialized:
          example: >-
            0xf904b61e8459682f0a8301fb7594053508a6967c54b7a3b8efadeaf6e9979890006a8903782dace9d9000000b904444f498c73000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000003e00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000030a420a76ff09e2fc3f068a5759a560f5b9eaca8cf85dd73e697cdc49014be23c8b468426d719a5cc84dcbcdda0a1abf6f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030a0f09e0e9230ab68a1f488969b14c584cff1479fe34a348dd84d6c4194366d3d5b569ea7e72cfa2e2b06bac60452cb9b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000200100000000000000000000005a920ec8ca81f53709a3f7bda0fa5911c905721800000000000000000000000000000000000000000000000000000000000000200100000000000000000000005a920ec8ca81f53709a3f7bda0fa5911c90572180000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000060842a230f68819ede9099c9cfa33c3def570323a9c8417a28c3b3db1a6af11d4903998b889be33a14848f89e1fad858af0adadc92f051c68dddf410d7b1cc875970fc4630dd47f375517c4336cfd75b9a8e5a92e96a2b54c0306d82336650f7c1000000000000000000000000000000000000000000000000000000000000006089e1449c9d81135d19c2f66a823837d18f4dda1d26276bd66e99a048e28cb513b10d776c1636a8f37d133c8558e019560f86d88c5625d5acf9af05902703a14b5dbbd50975c8ea3e480db59a8930b95713cba4b65d9a41cbc1ac27bcbe36d1470000000000000000000000000000000000000000000000000000000000000002252f2f9e049cee403ec2201a878309b7f448e228097c2a4b09b145057d8e1ff60921ddabd3905a3bad998ae97092a8f2815246f156cc884242f1841f55895dd1831e84a3a0e1ce9dbebe355eba4aea58da6de44f2a34e150cd5fd9cb00245384fb420e5591a03da5fd33679a2923ac5a22a696a69a456ec73efdeec88b8a5d9527b171fe7771
          format: binary
          type: string
          description: The canonical RLP encoding of the transaction
        value:
          example: '32000000000000000000'
          type: string
          description: The amount of Ether that will be sent to the contract.
      description: >-
        The transaction that will need to be signed to be broadcasted to the
        Ethereum network.
    ValidatorKey:
      type: object
      properties:
        public_key:
          example: >-
            0x134dea3b9a72b811ef33e63977c78ea11da9b5a7d8409384f9349739821d84af1a7988e4c30cd05db21410cdc5c020c90eaca75aaff6c50a5c0b06b411699008
          format: binary
          type: string
      description: The public key of a validator.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.