<!-- tempo-docs-context -->
> Source: [/docs/routes/examples/deposits](https://tempo.com/developers/docs/routes/examples/deposits.md)
> Section: [Routes](https://tempo.com/developers/docs/routes.md). Move stablecoins between Tempo and other networks: try a route, set up API access, choose a supported route, quote it, accept deposits or make a transfer, and track delivery. Routes is in beta; see the introduction for access.
> [Documentation index](https://tempo.com/developers/llms.txt) · [Docs skill](https://tempo.com/developers/SKILL.md)

> Tempo MCP: Use `search`, `find_pages`, `read_page`, and `code` at `https://mcp.tempo.xyz` for Tempo and related documentation.
> If an indexed page is missing or reflects an older site, read this site’s [documentation index](https://tempo.com/developers/llms.txt) and Markdown pages directly.

# Deposit address example

Run every step of [Accept deposits](https://tempo.com/developers/docs/routes/deposits) from a terminal. That guide explains each step; this page keeps the commands together with shell variables for every input.

<span id="set-up-routes-api-access" />

## Set the example variables

Set `TEMPO_API_KEY` to a key with `routes:read` and `routes:write` from [Set up Routes](https://tempo.com/developers/docs/routes/api-setup). Choose a route with deposit-address support from [Supported routes](https://tempo.com/developers/docs/routes/networks), then set:

| Variable | Value |
| --- | --- |
| `SOURCE_CHAIN`, `SOURCE_TOKEN` | Accepted source network and token. |
| `DESTINATION_TOKEN` | Token the recipient receives on Tempo. |
| `ROUTE_RECIPIENT` | Recipient account on Tempo. |
| `ROUTE_REFUND_ADDRESS` | Account on the source network that receives refunds. |
| `ROUTE_AMOUNT` | Source amount in base units to use for the quote. |

<span id="create-and-monitor-a-deposit-address" />

## Accept a deposit

:::steps
### Quote the deposit

```bash
curl --get 'https://api.tempo.xyz/v1/routes/deposit-addresses/quote' \
  --header "tempo-api-key: ${TEMPO_API_KEY}" \
  --data-urlencode "sourceChain=${SOURCE_CHAIN}" \
  --data-urlencode "sourceToken=${SOURCE_TOKEN}" \
  --data-urlencode "destinationToken=${DESTINATION_TOKEN}" \
  --data-urlencode "recipient=${ROUTE_RECIPIENT}" \
  --data-urlencode "refundAddress=${ROUTE_REFUND_ADDRESS}" \
  --data-urlencode "amount=${ROUTE_AMOUNT}"
```

Review the terms as described in [Quotes and fees](https://tempo.com/developers/docs/routes/quotes).

<span id="create-a-reusable-address" />

### Create a deposit address

Set `ROUTE_REQUEST_KEY` to the [idempotency key](https://tempo.com/developers/docs/routes/api-setup#set-idempotency-keys) for this address.

```bash
jq -n \
  --arg sourceChain "$SOURCE_CHAIN" \
  --arg sourceToken "$SOURCE_TOKEN" \
  --arg destinationToken "$DESTINATION_TOKEN" \
  --arg recipient "$ROUTE_RECIPIENT" \
  --arg refundAddress "$ROUTE_REFUND_ADDRESS" \
  --arg amount "$ROUTE_AMOUNT" \
  '$ARGS.named' > deposit-address-request.json

curl --fail-with-body 'https://api.tempo.xyz/v1/routes/deposit-addresses' \
  --header "tempo-api-key: ${TEMPO_API_KEY}" \
  --header "idempotency-key: ${ROUTE_REQUEST_KEY}" \
  --header 'Content-Type: application/json' \
  --data @deposit-address-request.json
```

Save the returned address and `id` with your customer record.

<span id="show-the-funding-instructions" />

### Show funding instructions

Confirm the address status is `active`, then show the source network, token, and address together.

<span id="track-each-deposit" />

### Track deposits

Set `ROUTE_DEPOSIT_ADDRESS` to the returned source-chain address, not the `rda_…` object ID:

```bash
curl --get 'https://api.tempo.xyz/v1/routes/deposits' \
  --header "tempo-api-key: ${TEMPO_API_KEY}" \
  --data-urlencode "depositAddress=${ROUTE_DEPOSIT_ADDRESS}"
```

Read `GET /v1/routes/deposits/{id}` for each deposit, and reconcile each one separately.
:::

<span id="reconcile-delivery-and-refunds" />

Follow [Track delivery](https://tempo.com/developers/docs/routes/delivery) before crediting a balance or treating a refund as complete. See the [Deposit addresses API reference](https://tempo.com/developers/docs/api/routes/deposit-addresses) for request fields and pagination.
