{
  "x402Version": 2,
  "id": 27131,
  "slug": "27131",
  "resource": "https://defillama.use.x402atlas.com/fees-chain",
  "description": "Fees & revenue for one chain by DefiLlama — protocol fees and revenue on a single chain.",
  "type": "http",
  "serviceName": "DefiLlama DeFi TVL & Yields",
  "resourceType": "Market Data",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xCB8025D951e5E45Be7D288B658EEee6f05713006",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0xCB8025D951e5E45Be7D288B658EEee6f05713006",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0xCB8025D951e5E45Be7D288B658EEee6f05713006",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "ASt6xvRyQ7ntERsmcYVMdLqZvz1GEN8Fzexzq62tXrNQ",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "data": {
            "additionalProperties": true,
            "description": "Raw DefiLlama per-chain fees overview payload",
            "properties": {
              "protocols": {
                "items": {
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "total24h": {
                      "type": "number"
                    }
                  },
                  "type": "object"
                },
                "type": "array"
              },
              "total24h": {
                "description": "Aggregate 24h fees or revenue in USD, per dataType",
                "type": "number"
              }
            },
            "type": "object"
          },
          "queried_at": {
            "description": "When this bridge fetched the upstream data",
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "queried_at",
          "data"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "category": "finance",
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "chain": "ethereum",
            "dataType": "dailyRevenue",
            "excludeTotalDataChart": "false",
            "excludeTotalDataChartBreakdown": "false"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "data": {
              "protocols": [
                {
                  "name": "Uniswap",
                  "total24h": 120000
                }
              ],
              "total24h": 1230000
            },
            "queried_at": "2026-07-01T12:00:00Z"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "chain": {
                    "description": "Chain slug (e.g. ethereum, arbitrum)",
                    "maxLength": 100,
                    "minLength": 1,
                    "pattern": "^[^/?#]+$",
                    "type": "string"
                  },
                  "dataType": {
                    "description": "Optional data type (e.g. dailyFees, dailyRevenue)",
                    "maxLength": 200,
                    "type": "string"
                  },
                  "excludeTotalDataChart": {
                    "description": "Optional true/false to exclude the aggregate data chart",
                    "maxLength": 200,
                    "type": "string"
                  },
                  "excludeTotalDataChartBreakdown": {
                    "description": "Optional true/false to exclude the per-protocol chart breakdown",
                    "maxLength": 200,
                    "type": "string"
                  }
                },
                "required": [
                  "chain"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "data": {
                    "additionalProperties": true,
                    "description": "Raw DefiLlama per-chain fees overview payload",
                    "properties": {
                      "protocols": {
                        "items": {
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "total24h": {
                              "type": "number"
                            }
                          },
                          "type": "object"
                        },
                        "type": "array"
                      },
                      "total24h": {
                        "description": "Aggregate 24h fees or revenue in USD, per dataType",
                        "type": "number"
                      }
                    },
                    "type": "object"
                  },
                  "queried_at": {
                    "description": "When this bridge fetched the upstream data",
                    "format": "date-time",
                    "type": "string"
                  }
                },
                "required": [
                  "queried_at",
                  "data"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      },
      "tags": [
        "defi",
        "fees",
        "revenue",
        "defillama",
        "crypto"
      ]
    }
  },
  "tags": [
    "defi",
    "fees",
    "revenue",
    "defillama",
    "crypto",
    "bazaar"
  ],
  "sourceHost": "defillama.use.x402atlas.com",
  "lastUpdated": "2026-10-08T06:14:21.456Z",
  "quality": {
    "calls30d": 4,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-08T06:14:21.363Z"
  },
  "metadata": {
    "serviceName": "DefiLlama DeFi TVL & Yields",
    "extensions": {
      "bazaar": {
        "category": "finance",
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "chain": "ethereum",
              "dataType": "dailyRevenue",
              "excludeTotalDataChart": "false",
              "excludeTotalDataChartBreakdown": "false"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "data": {
                "protocols": [
                  {
                    "name": "Uniswap",
                    "total24h": 120000
                  }
                ],
                "total24h": 1230000
              },
              "queried_at": "2026-07-01T12:00:00Z"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "properties": {
                    "chain": {
                      "description": "Chain slug (e.g. ethereum, arbitrum)",
                      "maxLength": 100,
                      "minLength": 1,
                      "pattern": "^[^/?#]+$",
                      "type": "string"
                    },
                    "dataType": {
                      "description": "Optional data type (e.g. dailyFees, dailyRevenue)",
                      "maxLength": 200,
                      "type": "string"
                    },
                    "excludeTotalDataChart": {
                      "description": "Optional true/false to exclude the aggregate data chart",
                      "maxLength": 200,
                      "type": "string"
                    },
                    "excludeTotalDataChartBreakdown": {
                      "description": "Optional true/false to exclude the per-protocol chart breakdown",
                      "maxLength": 200,
                      "type": "string"
                    }
                  },
                  "required": [
                    "chain"
                  ],
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "data": {
                      "additionalProperties": true,
                      "description": "Raw DefiLlama per-chain fees overview payload",
                      "properties": {
                        "protocols": {
                          "items": {
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "total24h": {
                                "type": "number"
                              }
                            },
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "total24h": {
                          "description": "Aggregate 24h fees or revenue in USD, per dataType",
                          "type": "number"
                        }
                      },
                      "type": "object"
                    },
                    "queried_at": {
                      "description": "When this bridge fetched the upstream data",
                      "format": "date-time",
                      "type": "string"
                    }
                  },
                  "required": [
                    "queried_at",
                    "data"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        },
        "tags": [
          "defi",
          "fees",
          "revenue",
          "defillama",
          "crypto"
        ]
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "defillama.use.x402atlas.com",
    "manifest_name": "defillama.use.x402atlas.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "data": {
        "protocols": [
          {
            "name": "string",
            "total24h": 0
          }
        ],
        "total24h": 0
      },
      "queried_at": "2026-01-01T00:00:00Z"
    },
    "type": "string"
  }
}