Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

ENS plugin: resolving names into addresses

Raúl Kripalani edited this page Nov 12, 2018 · 1 revision

ENS plugin

The ENS plugin adds support for resolving addresses from the Ethereum Name Service.

This plugin is enabled by default in standalone EthQL servers. If you're embedding EthQL in an existing application, you will need to load this plugin when calling bootstrap().

With this plugin, ENS names can be used in queries in place of an address. Here are a few examples.

Address

  {
    account(address: "ethereum.eth") {
      code
      transactionCount
    }
  }

Transaction roles

  {
    block(hash:"0x27cb5d9151939faeb4d5604b4ddb69fefcd166e690a9c1c9a235c024f376e49f") {
      transactionsRoles(to: "ethereum.eth") {
        hash
      }
    }
  }

Transactions involving

  {
    block(hash: "0x27cb5d9151939faeb4d5604b4ddb69fefcd166e690a9c1c9a235c024f376e49f") {
      transactionsInvolving(participants: ["ethereum.eth"]) {
        hash
      }
    }
  }