@ethql/ens
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

ENS plugin

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

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
      }
    }
  }

/@ethql/ens/

    Package Sidebar

    Install

    npm i @ethql/ens

    Weekly Downloads

    0

    Version

    0.1.2

    License

    Apache-2.0

    Unpacked Size

    33.9 kB

    Total Files

    26

    Last publish

    Collaborators

    • k_shinn
    • raulk