Skip to content

Convenience Queries

DuneDune

DuneDune3 charts


get_chain_native_token: is built with query 3113680. You can change the chain and the column on the parameter selectors in the right to get different results.

select * from "query_3113680(chain='{{chain}}', column='{{column}}')"


get_labels: is built with query 3113866. You can change the address value (varbinary) on the parameter selector in the right to get different results.

select * from "query_3113866(address='{{address}}')"

get_ens: is built with query 311358. You can change the address value (varbinary) on the parameter selector in the right to get different results.

select * from "query_3113587(address='{{address}}')"

DuneSQL Convenience Queries:

  • get_ens(varbinary): returns the ENS of a given address
  • get_chain_native_token(varchar, varchar): for a given chain it returns its symbol, its price symbol, its address for its contract or its number of decimals
  • get_labels(varbinary): returns all of the labels associated to a given address

As of October 2023, the way to invoke them is via a query ID. They will be properly named so that they can be invoked by their names in 2024.