# getProtocolTvl

**Identifier:** `defillama_getProtocolTvl`

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

Get the current Total Value Locked (TVL) for a specific DeFi protocol. TVL represents the total value of assets locked in the protocol's smart contracts.

## Run it with the CLI

```bash
kirha tools run defillama_getProtocolTvl \
  --input '{
    "protocol": "uniswap"
  }'
```

`--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_getProtocolTvl",
  "input": {
    "protocol": "uniswap"
  }
}'
```

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": {
    "protocol": {
      "description": "protocol slug (e.g., 'uniswap', 'compound-v3', 'aave'). Must be an exact slug, not a name: get it from searchProtocols",
      "type": "string"
    }
  },
  "required": [
    "protocol"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "currentTVL": {
      "type": "number"
    },
    "protocol": {
      "type": "string"
    }
  },
  "required": [
    "context",
    "currentTVL",
    "protocol"
  ],
  "type": "object"
}
```

## Related tools

Other DefiLlama tools that this tool refers to, or that refer to it.

- [`searchProtocols`](https://kirha.com/providers/defillama/searchProtocols.md)

-----

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