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

# Onyx DeFi

- [Onyx App](https://docs.onyx.org/onyx-defi/onyx-app.md): Mainnet entry point for Onyx swap, bridge, staking, farming, and migration.
- [Swap and Markets](https://docs.onyx.org/onyx-defi/onyx-app/markets.md): Trade on Onyx Mainnet swap markets.
- [Bridge](https://docs.onyx.org/onyx-defi/onyx-app/bridge.md): Use the Mainnet bridge and interpret its live status correctly.
- [Staking and stXCN](https://docs.onyx.org/onyx-defi/onyx-app/staking.md): Stake XCN on Onyx Mainnet and understand stXCN rewards and risks.
- [Farming](https://docs.onyx.org/onyx-defi/onyx-app/farming.md): Add XCN/USDC liquidity and farm XCN rewards on Onyx.
- [Migrate to Onyx](https://docs.onyx.org/onyx-defi/onyx-app/migrate.md): Move legacy Ethereum-staked XCN to Onyx with optional auto-staking.
- [Testnet DeFi and Slingshot](https://docs.onyx.org/onyx-defi/testnet-defi.md): Short guide to the Onyx Testnet Slingshot interface.
- [Swap](https://docs.onyx.org/onyx-defi/testnet-defi/swap.md)
- [Bridge](https://docs.onyx.org/onyx-defi/testnet-defi/bridge.md)
- [Migrate](https://docs.onyx.org/onyx-defi/testnet-defi/migrate.md)
- [Yield](https://docs.onyx.org/onyx-defi/testnet-defi/yield.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.onyx.org/onyx-defi.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
