get_bridge_day_stats
Retrieve 24-hour token and address volume data for blockchain bridges to analyze cross-chain activity and bridge performance.
Instructions
GET /bridgedaystats/{timestamp}/{chain}
Get a 24hr token and address volume breakdown for a bridge.
Parameters:
timestamp: Unix timestamp for the 24hr period starting at 00:00 UTC
chain: chain slug (e.g., 'Ethereum')
id: bridge ID (optional, can be retrieved from /bridges)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timestamp | Yes | ||
| chain | Yes | ||
| id | No |
Implementation Reference
- defillama_server.py:549-568 (handler)Handler function for 'get_bridge_day_stats' tool. Decorated with @mcp.tool() which registers it with the MCP server. Fetches daily bridge stats from DefiLlama Pro API using the shared make_request helper.@mcp.tool() async def get_bridge_day_stats( timestamp: int, chain: str, id: Optional[int] = None ) -> str: """GET /bridgedaystats/{timestamp}/{chain} Get a 24hr token and address volume breakdown for a bridge. Parameters: timestamp: Unix timestamp for the 24hr period starting at 00:00 UTC chain: chain slug (e.g., 'Ethereum') id: bridge ID (optional, can be retrieved from /bridges) """ params = {} if id is not None: params['id'] = id result = await make_request('GET', f'/bridgedaystats/{timestamp}/{chain}', params) return str(result)