# getStableCoinDominanceByChain

**Identifier:** `defillama_getStableCoinDominanceByChain`

**Provider:** [DefiLlama](https://kirha.com/providers/defillama.md)

Get stablecoin dominance data for a specific blockchain chain. This includes total circulating USD, breakdown by currency type, and the top stablecoin by market cap.

## Run it with the CLI

```bash
kirha tools run defillama_getStableCoinDominanceByChain \
  --input '{
    "chain": "ethereum"
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "defillama_getStableCoinDominanceByChain",
  "input": {
    "chain": "ethereum"
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "chain": {
      "description": "blockchain chain identifier (e.g., 'ethereum', 'bsc', 'polygon')",
      "type": "string"
    }
  },
  "required": [
    "chain"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "chain": {
      "type": "string"
    },
    "context": {
      "type": "string"
    },
    "date": {
      "type": "string"
    },
    "stablecoinBreakdown": {
      "additionalProperties": false,
      "properties": {
        "audPegged": {
          "type": "number"
        },
        "cadPegged": {
          "type": "number"
        },
        "chfPegged": {
          "type": "number"
        },
        "cnyPegged": {
          "type": "number"
        },
        "eurPegged": {
          "type": "number"
        },
        "gbpPegged": {
          "type": "number"
        },
        "jpyPegged": {
          "type": "number"
        },
        "otherPegged": {
          "type": "number"
        },
        "realPegged": {
          "type": "number"
        },
        "rubPegged": {
          "type": "number"
        },
        "usdPegged": {
          "type": "number"
        }
      },
      "required": [
        "usdPegged",
        "eurPegged",
        "jpyPegged",
        "cnyPegged",
        "gbpPegged",
        "cadPegged",
        "chfPegged",
        "audPegged",
        "realPegged",
        "rubPegged",
        "otherPegged"
      ],
      "type": "object"
    },
    "topStablecoin": {
      "additionalProperties": false,
      "properties": {
        "coingeckoId": {
          "description": "coingeckoId of the stablecoin. Use it directly to compose with coingecko tools.",
          "type": "string"
        },
        "marketCapUSD": {
          "type": "number"
        },
        "symbol": {
          "type": "string"
        }
      },
      "required": [
        "coingeckoId",
        "symbol",
        "marketCapUSD"
      ],
      "type": "object"
    },
    "totalCirculatingUSD": {
      "type": "number"
    }
  },
  "required": [
    "context",
    "chain",
    "date",
    "totalCirculatingUSD",
    "stablecoinBreakdown",
    "topStablecoin"
  ],
  "type": "object"
}
```

-----

[All DefiLlama tools](https://kirha.com/providers/defillama.md) · [< Back to tools list](https://kirha.com/tools.md)