> ## 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.

# Stellar basics

> Accounts, assets, trustlines and the testnet: the five minutes of Stellar you need to use Useroutr.

Useroutr settles every payment on [Stellar](https://stellar.org), a public blockchain built for
payments: a transaction confirms in about five seconds and costs a tiny fraction of a cent. You
never run anything on Stellar yourself. You need one account to receive money, and the testnet to
practise on.

![A Stellar account has a public address and a secret key. It holds XLM natively, and holds USDC only after adding a trustline to USDC's issuer. On testnet, Friendbot funds new accounts with test XLM.](https://mintcdn.com/thirtn/b2TsoqW7LpkFNk8m/images/illustrations/stellar-account-light.svg?fit=max\&auto=format\&n=b2TsoqW7LpkFNk8m\&q=85\&s=d483010c312bc1fc7be57028f75aff60)

## Accounts

A Stellar account is a pair of keys:

* The **public key** starts with `G`. It is the account's address: share it freely, and give it to
  Useroutr as your destination.
* The **secret key** starts with `S`. It signs payments from the account. Keep it private.
  Useroutr never asks for it.

An account exists once it holds a small minimum balance of XLM: 1 XLM, plus 0.5 XLM for each
trustline it adds. On testnet, Friendbot pays that for you.

## Assets

**XLM** is Stellar's own currency, and every account can hold it. Everything else, such as USDC, is
an **issued asset**: a code plus the account that issues it. Two assets can share a code, so
Useroutr always names the issuer too. See [Assets and networks](https://docs.useroutr.com/concepts/assets-and-networks.md).

## Trustlines

To hold an issued asset, an account first adds a **trustline** to that asset's issuer: an opt-in
that says "I accept USDC from this issuer". Without it, a payment of that asset cannot arrive.

Useroutr checks this for you. When you create a funding intent for USDC, your destination must
already have a USDC trustline, or the request is refused with `INVALID_DESTINATION` before anyone
pays. You can add a trustline in Stellar Lab or in any Stellar wallet.

## Testnet and mainnet

| | Testnet | Mainnet |
| - | - | - |
| Money | Free and fake | Real |
| Useroutr environment | Sandbox, `ur_test_` keys | Production, `ur_live_` keys |
| Funding an account | Friendbot, free | Buy or receive XLM |

The testnet is reset from time to time, so treat testnet accounts as disposable. For testnet USDC,
add a trustline to the testnet USDC issuer and use Circle's testnet faucet.

## Memos

Some Stellar payments carry a memo, a short note used by exchanges to tell customers apart.
Useroutr does not need one for payments: every intent has its own deposit account, so the address
alone says which payment is which. Memos matter only when a refund goes back to an exchange; see
[Refunds](https://docs.useroutr.com/guides/refunds.md).

## Tools worth knowing

> [card] [Stellar Lab](https://lab.stellar.org)
>
> Create and fund testnet accounts, add trustlines, build and sign payments.

> [card] [Stellar Expert](https://stellar.expert/explorer/testnet)
>
> Look up any account or transaction hash, including the ones Useroutr gives you.

> [card] [Freighter](https://www.freighter.app)
>
> A browser wallet that can switch to testnet, handy for paying a test intent.


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