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

# A treasury on any chain

> Keep your money where your app lives, such as USDC on Base, and still accept payments from Stellar and other networks.

![Payments in XLM, USDT0 on Arbitrum or USDC on Ethereum all arrive as USDC in a treasury on Base.](https://mintcdn.com/thirtn/tEtIKPxuXx_PTNHq/images/illustrations/use-case-treasury-light.svg?fit=max\&auto=format\&n=tEtIKPxuXx_PTNHq\&q=85\&s=0652cefb697cc25946b29a3962f87107)

Destination on BaseRoutesFunding intents

## The idea

Your contracts, your payroll and your accountant all live on Base. Your users don't. Ask for USDC
on Base, and a payment in XLM, USDT0 on Arbitrum or USDC on Ethereum is routed there for you. One
treasury, every network feeding it.

## How it plays out

**1. Ask for USDC on Base**

Create the funding intent for `asset_usdc_base`, with your Base address as the destination.

**2. Users pay from wherever they are**

Someone paying USDC on Base pays you directly. Anyone else is quoted a route: their payment is
bridged to Stellar, converted if needed, and bridged out to your address.

**3. It arrives on Base**

The USDC lands at your address, your Useroutr ledger records the credit, and
`funding.credited` tells your server.

## The code

```ts Ask for USDC on Base theme={null}
const intent = await useroutr.fundingIntents.create(
  {
    amount: "250",
    asset: "asset_usdc_base",
    destination: {
      network: "base",
      asset: "asset_usdc_base",
      address: "0x4b20993Bc481177ec7E8f571ceCaE8A9e22C02db",
    },
    reference: orderId,
  },
  { idempotencyKey: orderId },
);
```

## Which route carries it

| Your user pays with | Route |
| - | - |
| USDC on Base | `DIRECT_EVM`: forwarded to you on Base |
| USDC on Stellar | `CROSS_CHAIN`: bridged out to Base |
| XLM, or another network's token | `COMPOSED`: bridged and swapped through Stellar |

Your user always sees one amount and one address. See
[Quotes and routes](https://docs.useroutr.com/concepts/quotes-and-routes.md) for how each is priced.

## Good to know

* Routes through a bridge take longer than a payment on one network, and some bridges are slower
  than others. The quote names the route before your user pays.
* A payment forwarded on Base keeps the token's own precision, six decimals for USDC.
* The sandbox runs on testnets, Base Sepolia among them, and lists fewer assets than production.
  Read the catalog from `useroutr.assets.list()`.


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