> For the complete documentation index, see [llms.txt](https://docs.idrx.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.idrx.co/smart-contract/staking/staking-idrx.md).

# Staking IDRX

* **Function**: `newStake(uint amount, uint stakeType)`
* **Parameters**:
  * `amount`: The amount of IDRX to stake.
  * `stakeType`: The type of stake (1 to 4 refer to [Staking Type](/smart-contract/staking/staking-type.md)).
* **Event** **Emitted**:

```solidity
event addNewStake(
    uint stakeId,
    uint stakeType,
    address staker,
    uint stakeAmount,
    uint rewardAmount,
    uint createdTimestamp,
    uint unlockTimestamp
);
```
