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

# Payments and Assets

> Send XLM, stellar classic, or a soroban asset using the Stellar CLI

To send payments and work with assets using the Stellar CLI, follow these steps:

1. Set your preferred network. For this guide, we will use `testnet`. A list of available networks can be found [here](https://developers.stellar.org/docs/networks.md)

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
stellar network use testnet
```

2. Fund the accounts:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
stellar keys generate alice
```

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
stellar keys fund alice
```

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
stellar keys generate bob
```

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
stellar keys fund bob
```

3. Obtain the stellar asset contract ID:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
stellar contract id asset --asset native
```

4. Get Bob's public key:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
stellar keys address bob
```

5. Send 100 XLM from Alice to Bob:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
stellar keys use alice
```

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
stellar contract invoke --id <ASSET_CONTRACT_ID> -- transfer --to bob --from alice --amount 100
```

6. Check account balance:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
stellar contract invoke --id <ASSET_CONTRACT_ID> -- balance --id bob
```

For more information on the functions available to the stellar asset contract, see the [token interface code](https://developers.stellar.org/docs/tokens/token-interface.md#code)
