> 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/testnet-defi.md).

# Testnet DeFi and Slingshot

Use Onyx Testnet Slingshot, the faucet, and the test bridge lanes.

[Onyx Slingshot](https://app.testnet.onyx.org) is the DeFi app for **Onyx Testnet**, Chain ID `8901` (`0x22c5`). It is a separate network from Onyx Mainnet. Test XCN and every test token have no Mainnet value. Use a wallet you reserve for testing, and confirm the wallet shows Chain ID `8901` before you sign.

Open <https://app.testnet.onyx.org>. Each section lives in the address hash, so a refresh stays on that section:

| Section                                                            | Address                                  |
| ------------------------------------------------------------------ | ---------------------------------------- |
| [Swap](https://docs.onyx.org/onyx-defi/testnet-defi/swap.md)       | <https://app.testnet.onyx.org/#/swap>    |
| [Bridge](https://docs.onyx.org/onyx-defi/testnet-defi/bridge.md)   | <https://app.testnet.onyx.org/#/bridge>  |
| [Migrate](https://docs.onyx.org/onyx-defi/testnet-defi/migrate.md) | <https://app.testnet.onyx.org/#/migrate> |
| [Yield](https://docs.onyx.org/onyx-defi/testnet-defi/yield.md)     | <https://app.testnet.onyx.org/#/yield>   |

A path without the hash, such as `https://app.testnet.onyx.org/bridge`, is not a page on the host and returns 404. Use the home address or one of the hash addresses above. Test XCN comes from the Telegram bot on the [Faucet](https://docs.onyx.org/onyx-defi/testnet-defi/faucet.md) page, which is separate from the app. Robinhood test ETH and TSLA come from the [Robinhood Chain Testnet Faucet](https://faucet.testnet.chain.robinhood.com/), as described on [Bridge](https://docs.onyx.org/onyx-defi/testnet-defi/bridge.md).

{% hint style="warning" %}
Testnet balances, liquidity, faucet delivery, and bridge relaying are best-effort. A token name that matches a Mainnet asset is still a test asset. Do not send Mainnet funds to a Testnet address.
{% endhint %}

## Add Onyx Testnet

| Setting         | Value                           |
| --------------- | ------------------------------- |
| Network name    | Onyx Testnet                    |
| RPC URL         | `https://rpc.testnet.onyx.org`  |
| Chain ID        | `8901`                          |
| Currency symbol | `XCN`                           |
| WebSocket       | `wss://rpc.testnet.onyx.org/ws` |

Slingshot can prompt the wallet to add this network. You can also add it by hand with the table above.

Check the chain before you sign:

```bash
curl -sS https://rpc.testnet.onyx.org \
  -H 'content-type: application/json' \
  --data '{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":1}'
```

The result must be `0x22c5` (decimal `8901`).

## Get test XCN

Gas on Onyx Testnet is test XCN. Request it from the Onyx Testnet Faucet Bot, Telegram [`@GoliathFaucetBot`](https://t.me/GoliathFaucetBot). The steps, the 10,000 XCN amount, and the cooldown are on the [Faucet](https://docs.onyx.org/onyx-defi/testnet-defi/faucet.md) page.

## What each section does

| Section                                                            | What you rehearse                                                                              |
| ------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------- |
| [Faucet](https://docs.onyx.org/onyx-defi/testnet-defi/faucet.md)   | Receive test XCN in the wallet you will connect                                                |
| [Swap](https://docs.onyx.org/onyx-defi/testnet-defi/swap.md)       | Trade the test pool tokens and, if you choose, add liquidity                                   |
| [Bridge](https://docs.onyx.org/onyx-defi/testnet-defi/bridge.md)   | Move test ETH and XCN with Ethereum Sepolia, or test ETH and TSLA with Robinhood Chain Testnet |
| [Migrate](https://docs.onyx.org/onyx-defi/testnet-defi/migrate.md) | Move staked test XCN from Ethereum Sepolia onto Onyx Testnet                                   |
| [Yield](https://docs.onyx.org/onyx-defi/testnet-defi/yield.md)     | Stake test XCN for stXCN and unstake it again                                                  |

## Other public Testnet services

| Service                       | URL                                         |
| ----------------------------- | ------------------------------------------- |
| Mirror REST                   | <https://api.testnet.onyx.org>              |
| Validator dashboard           | <https://validators.testnet.onyx.org>       |
| Bridge status used by the app | <https://bridgeapi.testnet.onyx.org/api/v1> |

Connection details for both networks are also on [Chain Info](https://docs.onyx.org/readme/chain-info.md). Mainnet app behavior stays on [Onyx App](https://docs.onyx.org/onyx-defi/onyx-app.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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
