# Stake Transaction

## POST /v1/api/ethereum/{network}/stake\_transaction

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

```json
{"openapi":"3.0.3","info":{"title":"Validation Cloud Staking API","version":"1.0.0"},"servers":[{"url":"https://ethereum-staking.sprd.validationcloud.io"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"StakeTransactionAPIRequest":{"properties":{"num_validators":{"type":"integer","description":"The number of validators that will be created."},"wallet_address":{"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":{"type":"integer","default":0,"description":"Type of the returned transaction.\n0 for legacy transactions.\n2 for EIP-1559 transactions."},"is_eigen_restaking":{"type":"boolean","default":false,"description":"Whether to restake in the context of EigenLayer or not."},"is_ssv":{"type":"boolean","default":false,"description":"Whether to deploy validators in the context of a SSV cluster or not."}},"type":"object"},"StakeTransactionAPIResponse":{"properties":{"transaction":{"$ref":"#/components/schemas/Transaction"},"validator_keys":{"items":{"$ref":"#/components/schemas/ValidatorKey"},"type":"array"}},"type":"object"},"Transaction":{"type":"object","properties":{"data":{"format":"binary","type":"string","description":"The data that will be sent to the contract."},"gas":{"type":"integer","description":"The amount of gas that will be used to execute the transaction."},"gas_price":{"type":"string","description":"The price of gas in Gwei."},"nonce":{"type":"integer","description":"The nonce of the transaction. This is used to prevent replay attacks."},"to":{"format":"binary","type":"string","description":"The address of the contract that will be called."},"transaction_serialized":{"format":"binary","type":"string","description":"The canonical RLP encoding of the transaction"},"value":{"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":{"format":"binary","type":"string"}},"description":"The public key of a validator."},"ErrorResponse":{"type":"object","properties":{"error":{"type":"string"}}}}},"paths":{"/v1/api/ethereum/{network}/stake_transaction":{"post":{"description":"Supplies a transaction that, once signed and broadcasted, facilitates the creation of stake validators.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StakeTransactionAPIRequest"}}}},"parameters":[{"name":"network","in":"path","required":true,"schema":{"type":"string","default":"mainnet","enum":["mainnet","hoodi"]},"description":"The network"}],"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"}}}}},"tags":["Stake Transaction"]}}}}
```
