{
  "x402Version": 2,
  "id": 57629,
  "slug": "57629",
  "resource": "https://tanod.dev/v1/defi/fees",
  "description": "chainpeek (Tanod) protocol fees and revenue over 24 hours to all time, from cached DefiLlama data. Use when an agent must judge what a protocol earns: its fees and revenue over 24 hours, 7 days, 30 days and a year.",
  "type": "http",
  "serviceName": "Tanod chainpeek",
  "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1791364949/bazaar-icons/d8143c9bc952f5cd.png",
  "resourceType": "Beauty & Personal Care",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x593857A4a4F619543ea12394137C3004ce841720",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "2000",
      "amountUsd": 0.002,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0x593857A4a4F619543ea12394137C3004ce841720",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "2000",
      "amountUsd": 0.002,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "RMk9k3VC8dr4hhjgFh88rGhjAbzfBzHxJJ5n2fTcqus",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "2000",
      "amountUsd": 0.002,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:56",
      "payTo": "0x593857A4a4F619543ea12394137C3004ce841720",
      "asset": "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",
      "amount": "2000000000000000",
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0x593857A4a4F619543ea12394137C3004ce841720",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "2000",
      "amountUsd": 0.002,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x593857A4a4F619543ea12394137C3004ce841720",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "2000",
      "amountUsd": 0.002,
      "maxTimeoutSeconds": 604900
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0x593857A4a4F619543ea12394137C3004ce841720",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "2000",
      "amountUsd": 0.002,
      "maxTimeoutSeconds": 604900
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "description": "Abridged to fit the header. Full example: the 402 JSON body. Full schema: https://tanod.dev/openapi.json POST /v1/defi/fees",
        "properties": {
          "as_of": {
            "type": "string"
          },
          "cache_age_hours": {
            "type": "number"
          },
          "note": {
            "type": "string"
          },
          "other_matches": {
            "type": "array"
          },
          "protocol": {
            "type": "object"
          },
          "source": {
            "type": "string"
          },
          "stale": {
            "type": "boolean"
          }
        },
        "required": [
          "as_of",
          "cache_age_hours",
          "protocol",
          "source",
          "note"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "protocol": "aave"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "as_of": "2026-10-13T03:45:23Z",
            "cache_age_hours": 0,
            "note": "Fees are what users pay a protocol or chain; revenue is the part DefiLlama counts as kept by the protocol (its definition is in `methodology`; it can differ from what token holders receive). 24h, 7d and 30d are rolling windows; each change compares a window with the previous window of the same length. A parent protocol (for example Aave) sums its versions. Cached data, not live: see as_of. Informational only, not investment advice.",
            "other_matches": [],
            "protocol": {
              "category": "Lending",
              "chains": [
                "Polygon",
                "Fantom",
                "Arbitrum",
                "Avalanche",
                "OP Mainnet",
                "Ethereum",
                "Metis",
                "Base",
                "Gnosis",
                "BSC",
                "Scroll",
                "ZKsync Era",
                "Linea",
                "Celo",
                "Sonic",
                "Soneium",
                "Plasma",
                "Mantle",
                "MegaETH",
                "X Layer"
              ],
              "fees": {
                "1y_usd": 693109673,
                "24h_usd": 1243208,
                "30d_usd": 38138385,
                "7d_usd": 9443033,
                "all_time_usd": 2327563802,
                "change_1d_pct": 3.86,
                "change_30d_pct": 11.24,
                "change_7d_pct": 7.33
              },
              "methodology": {
                "fees": "Include borrow interest, flashloan fee, liquidation fee, penalty paid by borrowers, swap fees from Paraswap, and Chainlink SVR (MEV recapture from Ethereum liquidations).",
                "revenue": "Amount of fees go to Aave treasury."
              },
              "name": "Aave",
              "revenue": {
                "1y_usd": 89657550,
                "24h_usd": 161854,
                "30d_usd": 4948886,
                "7d_usd": 1192162,
                "all_time_usd": 314789412,
                "change_1d_pct": 4.69,
                "change_30d_pct": 4.84,
                "change_7d_pct": 5.2
              },
              "revenue_to_fees_30d_pct": 12.98,
              "slug": "aave",
              "type": "parent",
              "versions": [
                {
                  "fees_30d_usd": 37051446,
                  "name": "Aave V3",
                  "revenue_30d_usd": 4675859,
                  "slug": "aave-v3"
                },
                {
                  "fees_30d_usd": 925779,
                  "name": "Aave V4",
                  "revenue_30d_usd": 130244,
                  "slug": "aave-v4"
                },
                {
                  "fees_30d_usd": 161160,
                  "name": "Aave V2",
                  "revenue_30d_usd": 142783,
                  "slug": "aave-v2"
                }
              ]
            },
            "source": "Data: DefiLlama (used with permission), served from Tanod's cache, refreshed every few hours",
            "stale": false
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "protocol": {
                    "description": "Protocol (or chain) name or slug, e.g. aave, uniswap, lido, ethereum (a parent such as aave sums its versions). An unknown name is a 422 with suggestions.",
                    "maxLength": 80,
                    "minLength": 1,
                    "pattern": "^.*[A-Za-z0-9].*$",
                    "type": "string"
                  }
                },
                "required": [
                  "protocol"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "description": "Abridged to fit the header. Full example: the 402 JSON body. Full schema: https://tanod.dev/openapi.json POST /v1/defi/fees",
                "properties": {
                  "as_of": {
                    "type": "string"
                  },
                  "cache_age_hours": {
                    "type": "number"
                  },
                  "note": {
                    "type": "string"
                  },
                  "other_matches": {
                    "type": "array"
                  },
                  "protocol": {
                    "type": "object"
                  },
                  "source": {
                    "type": "string"
                  },
                  "stale": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "as_of",
                  "cache_age_hours",
                  "protocol",
                  "source",
                  "note"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "builder-code": {
      "info": {
        "a": "bc_h7pxv14u"
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "a": {
            "description": "App builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          },
          "s": {
            "description": "Service builder codes",
            "items": {
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "maxItems": 11,
            "type": "array"
          },
          "w": {
            "description": "Wallet builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          }
        },
        "type": "object"
      }
    },
    "erc20ApprovalGasSponsoring": {
      "info": {
        "description": "The facilitator accepts a raw signed approval transaction and will sponsor the gas fees.",
        "version": "1"
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "amount": {
            "description": "Approval amount (uint256).",
            "pattern": "^[0-9]+$",
            "type": "string"
          },
          "asset": {
            "description": "The ERC-20 token contract address to approve.",
            "pattern": "^0x[a-fA-F0-9]{40}$",
            "type": "string"
          },
          "from": {
            "description": "The address of the sender.",
            "pattern": "^0x[a-fA-F0-9]{40}$",
            "type": "string"
          },
          "signedTransaction": {
            "description": "RLP-encoded signed transaction calling ERC20.approve().",
            "pattern": "^0x[a-fA-F0-9]+$",
            "type": "string"
          },
          "spender": {
            "description": "The address of the spender (Canonical Permit2).",
            "pattern": "^0x[a-fA-F0-9]{40}$",
            "type": "string"
          },
          "version": {
            "description": "Schema version identifier.",
            "pattern": "^[0-9]+(\\.[0-9]+)*$",
            "type": "string"
          }
        },
        "required": [
          "from",
          "asset",
          "spender",
          "amount",
          "signedTransaction",
          "version"
        ],
        "type": "object"
      }
    },
    "payment-identifier": {
      "info": {
        "required": false
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "id": {
            "maxLength": 128,
            "minLength": 16,
            "pattern": "^[a-zA-Z0-9_-]+$",
            "type": "string"
          },
          "required": {
            "type": "boolean"
          }
        },
        "required": [
          "required"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "chainpeek",
    "defi",
    "fees",
    "ens",
    "calldata",
    "bazaar",
    "builder-code",
    "erc20ApprovalGasSponsoring",
    "payment-identifier"
  ],
  "sourceHost": "tanod.dev",
  "lastUpdated": "2026-10-13T20:35:59.917Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-13T20:35:59.256Z"
  },
  "metadata": {
    "serviceName": "Tanod chainpeek",
    "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1791364949/bazaar-icons/d8143c9bc952f5cd.png",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "protocol": "aave"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "as_of": "2026-10-13T03:45:23Z",
              "cache_age_hours": 0,
              "note": "Fees are what users pay a protocol or chain; revenue is the part DefiLlama counts as kept by the protocol (its definition is in `methodology`; it can differ from what token holders receive). 24h, 7d and 30d are rolling windows; each change compares a window with the previous window of the same length. A parent protocol (for example Aave) sums its versions. Cached data, not live: see as_of. Informational only, not investment advice.",
              "other_matches": [],
              "protocol": {
                "category": "Lending",
                "chains": [
                  "Polygon",
                  "Fantom",
                  "Arbitrum",
                  "Avalanche",
                  "OP Mainnet",
                  "Ethereum",
                  "Metis",
                  "Base",
                  "Gnosis",
                  "BSC",
                  "Scroll",
                  "ZKsync Era",
                  "Linea",
                  "Celo",
                  "Sonic",
                  "Soneium",
                  "Plasma",
                  "Mantle",
                  "MegaETH",
                  "X Layer"
                ],
                "fees": {
                  "1y_usd": 693109673,
                  "24h_usd": 1243208,
                  "30d_usd": 38138385,
                  "7d_usd": 9443033,
                  "all_time_usd": 2327563802,
                  "change_1d_pct": 3.86,
                  "change_30d_pct": 11.24,
                  "change_7d_pct": 7.33
                },
                "methodology": {
                  "fees": "Include borrow interest, flashloan fee, liquidation fee, penalty paid by borrowers, swap fees from Paraswap, and Chainlink SVR (MEV recapture from Ethereum liquidations).",
                  "revenue": "Amount of fees go to Aave treasury."
                },
                "name": "Aave",
                "revenue": {
                  "1y_usd": 89657550,
                  "24h_usd": 161854,
                  "30d_usd": 4948886,
                  "7d_usd": 1192162,
                  "all_time_usd": 314789412,
                  "change_1d_pct": 4.69,
                  "change_30d_pct": 4.84,
                  "change_7d_pct": 5.2
                },
                "revenue_to_fees_30d_pct": 12.98,
                "slug": "aave",
                "type": "parent",
                "versions": [
                  {
                    "fees_30d_usd": 37051446,
                    "name": "Aave V3",
                    "revenue_30d_usd": 4675859,
                    "slug": "aave-v3"
                  },
                  {
                    "fees_30d_usd": 925779,
                    "name": "Aave V4",
                    "revenue_30d_usd": 130244,
                    "slug": "aave-v4"
                  },
                  {
                    "fees_30d_usd": 161160,
                    "name": "Aave V2",
                    "revenue_30d_usd": 142783,
                    "slug": "aave-v2"
                  }
                ]
              },
              "source": "Data: DefiLlama (used with permission), served from Tanod's cache, refreshed every few hours",
              "stale": false
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "protocol": {
                      "description": "Protocol (or chain) name or slug, e.g. aave, uniswap, lido, ethereum (a parent such as aave sums its versions). An unknown name is a 422 with suggestions.",
                      "maxLength": 80,
                      "minLength": 1,
                      "pattern": "^.*[A-Za-z0-9].*$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "protocol"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "description": "Abridged to fit the header. Full example: the 402 JSON body. Full schema: https://tanod.dev/openapi.json POST /v1/defi/fees",
                  "properties": {
                    "as_of": {
                      "type": "string"
                    },
                    "cache_age_hours": {
                      "type": "number"
                    },
                    "note": {
                      "type": "string"
                    },
                    "other_matches": {
                      "type": "array"
                    },
                    "protocol": {
                      "type": "object"
                    },
                    "source": {
                      "type": "string"
                    },
                    "stale": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "as_of",
                    "cache_age_hours",
                    "protocol",
                    "source",
                    "note"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      },
      "builder-code": {
        "info": {
          "a": "bc_h7pxv14u"
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "additionalProperties": false,
          "properties": {
            "a": {
              "description": "App builder code",
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "s": {
              "description": "Service builder codes",
              "items": {
                "pattern": "^[a-z0-9_]{1,32}$",
                "type": "string"
              },
              "maxItems": 11,
              "type": "array"
            },
            "w": {
              "description": "Wallet builder code",
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "erc20ApprovalGasSponsoring": {
        "info": {
          "description": "The facilitator accepts a raw signed approval transaction and will sponsor the gas fees.",
          "version": "1"
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "amount": {
              "description": "Approval amount (uint256).",
              "pattern": "^[0-9]+$",
              "type": "string"
            },
            "asset": {
              "description": "The ERC-20 token contract address to approve.",
              "pattern": "^0x[a-fA-F0-9]{40}$",
              "type": "string"
            },
            "from": {
              "description": "The address of the sender.",
              "pattern": "^0x[a-fA-F0-9]{40}$",
              "type": "string"
            },
            "signedTransaction": {
              "description": "RLP-encoded signed transaction calling ERC20.approve().",
              "pattern": "^0x[a-fA-F0-9]+$",
              "type": "string"
            },
            "spender": {
              "description": "The address of the spender (Canonical Permit2).",
              "pattern": "^0x[a-fA-F0-9]{40}$",
              "type": "string"
            },
            "version": {
              "description": "Schema version identifier.",
              "pattern": "^[0-9]+(\\.[0-9]+)*$",
              "type": "string"
            }
          },
          "required": [
            "from",
            "asset",
            "spender",
            "amount",
            "signedTransaction",
            "version"
          ],
          "type": "object"
        }
      },
      "payment-identifier": {
        "info": {
          "required": false
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "id": {
              "maxLength": 128,
              "minLength": 16,
              "pattern": "^[a-zA-Z0-9_-]+$",
              "type": "string"
            },
            "required": {
              "type": "boolean"
            }
          },
          "required": [
            "required"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "tanod.dev",
    "manifest_name": "tanod.dev",
    "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": {
      "as_of": "string",
      "cache_age_hours": 0,
      "note": "string",
      "other_matches": [
        "value"
      ],
      "protocol": {},
      "source": "string",
      "stale": true
    },
    "type": "string"
  }
}