> ## Documentation Index
> Fetch the complete documentation index at: https://docs.useroutr.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sandbox

> Build and test against the Stellar testnet, then go live by changing one key.

The sandbox is a complete Useroutr environment on the Stellar testnet. Everything works the same
as production: funding intents, quotes, settlement, the ledger, webhooks and the checkout. No
real money moves.

| | Sandbox | Production |
| - | - | - |
| API key | `ur_test_...` | `ur_live_...` |
| API | `https://api.sandbox.useroutr.com` | `https://api.useroutr.com` |
| Network | Stellar testnet | Stellar mainnet |

The SDK reads the key's prefix and calls the right API, so your code does not change.

## Paying in the sandbox

Payments are real testnet transactions. To pay a funding intent:

1. Create a testnet account in [Stellar Lab](https://lab.stellar.org) and fund it with Friendbot,
   which gives you free testnet XLM.
2. Open the intent's `hosted_funding_url`, or send the amount in `funding_instructions` to its
   deposit address from that account.

To pay in testnet USDC, add a trustline for the testnet USDC issuer to your account first and get
testnet USDC from Circle's testnet faucet. The assets available in the sandbox are listed by
`useroutr.assets.list()`.

Your destination account must exist on testnet too, and hold a trustline for any issued asset you
ask to receive.

## Going live

1. Create a `ur_live_` key in the dashboard.
2. Set a mainnet destination account in **Settings**.
3. Point your webhook endpoints at production and store their new secrets.
4. Swap the key in your server's environment.

Test keys, test data and test webhooks stay in the sandbox. Nothing crosses between the two.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.