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

# Get stablecoins

> List all supported stablecoins and metadata.

**GET `/asset`** lists every stablecoin supported across all networks, including metadata such as token address, blockchain, decimals etc. and which payment flows (offramp, onramp, swap, wallet) each stablecoin supports.

## Example Request

<CodeGroup>
  ```bash cURL theme={"dark"}
  curl -L \
    --request GET \
    --url 'https://api.onswitch.xyz/asset' \
    --header 'x-service-key: '"$YOUR_SERVICE_KEY" \
    --header 'Accept: */*'
  ```

  ```javascript Node.js theme={"dark"}
  const res = await fetch('https://api.onswitch.xyz/asset', {
    method: 'GET',
    headers: {
      'x-service-key': process.env.YOUR_SERVICE_KEY,
      Accept: '*/*',
    },
  });

  const json = await res.json();
  console.log(json.data?.length, 'assets');
  ```

  ```python Python theme={"dark"}
  import os, json, urllib.request

  req = urllib.request.Request(
      "https://api.onswitch.xyz/asset",
      method="GET",
      headers={
          "x-service-key": os.environ["YOUR_SERVICE_KEY"],
          "Accept": "*/*",
      },
  )

  with urllib.request.urlopen(req, timeout=60) as r:
      payload = json.load(r)
      print(len(payload.get("data", [])), "assets")
  ```
</CodeGroup>

### Example Response

```json theme={"dark"}
{
  "success": true,
  "message": "Assets fetched successfully",
  "timestamp": "2026-03-31T03:15:12.304Z",
  "data": [
    {
      "id": "base:usdc",
      "name": "USD Coin",
      "code": "USDC",
      "decimals": 6,
      "address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
      "blockchain": {
        "id": 8453,
        "name": "BASE",
        "type": "EVM"
      },
      "offramp_supported": true,
      "onramp_supported": true,
      "swap_supported": true,
      "wallet_supported": true
    },
    {
      "id": "solana:usdc",
      "name": "USD Coin",
      "code": "USDC",
      "decimals": 6,
      "address": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "blockchain": {
        "id": 10000,
        "name": "SOLANA",
        "type": "SVM"
      },
      "offramp_supported": true,
      "onramp_supported": true,
      "swap_supported": true,
      "wallet_supported": true
    }
  ]
}
```

<Note>
  For a readable reference table, see [Stablecoins](/stablecoins).
</Note>

## Need Help?

<CardGroup cols={2}>
  <Card title="Email Support" icon="mail" href="mailto:contact@onswitch.xyz">
    Send us a message.
  </Card>

  <Card title="Book a call" icon="calendar" href="https://calendly.com/contact-onswitch/30min">
    Hop on a call with us.
  </Card>
</CardGroup>
