Widget

Use the following <iframe> format with parameters:

<iframe src="https://defiteller.com/static/widget/?dapp=28&period=180&blockchain=8&charts=users,transactions,tvl,volume&summary=true&theme=dark&chart_columns=4&max_width_chart=500&widget_height=500" ... ></iframe<

Parameters:

  • dapp - number, required. Dapp identifier obtained from the API request /api/dapps

  • period (days) - number, optional, default value = 180 days, maximum value = 180 days

  • blockchain - number, optional, blockchainId for EVM-compatible chains. If this parameter is not specified, data for all available blockchains will be used.

  • charts - []string, optional (default - users, transactions, tvl, volume),

  • summary - boolean, optional, default = true. Controls the display of text 'summary' values

  • theme - string(light|dark), optional, default = dark.

  • chart_columns - number, optional. Number of columns, if overflowing.

  • max_width_chart - number, optional. Specifies the width of the charts. If specified, the chart_columns parameter is ignored.

  • widget_height - number, optional. If specified, chart_columns and max_width_chart parameters are ignored, chart width is calculated from the widget height.

Last updated