# Integrating Staking

You can build apps on top of Sonic's staking system, such as liquid staking tokens or vaults. All staking operations are managed by the SFC (Special Fee Contract).

* **SFC Address:**\
  `0xFC00FACE00000000000000000000000000000000`
* **Key Functions:**
  * `delegate(validatorID)`: Delegate stake to a validator.
  * `undelegate(validatorID, wrID, amount)`: Begin the withdrawal process.
  * `withdraw(validatorID, wrID)`: Claim unlocked stake after the withdrawal period.
  * `pendingRewards(delegator, validatorID)`: Check claimable rewards.
  * `claimRewards(validatorID)`: Claim pending rewards.
* **Constants**\
  Economic parameters like withdrawal period and reward rates are available by calling the `constsAddress()` on the SFC to get the `ConstantsManager` contract address.
* See the [API & SDK Reference](https://www.notion.so/New-Proposed-Sonic-Documentation-20d178962bd280279aeceae1832ee8c2?pvs=21) for the full SFC ABI.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.soniclabs.com/sonic/build-on-sonic/integrating-staking.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
