This repository has been archived by the owner on Jan 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 86
ENS plugin: resolving names into addresses
Raúl Kripalani edited this page Nov 12, 2018
·
1 revision
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.
{
account(address: "ethereum.eth") {
code
transactionCount
}
}
{
block(hash:"0x27cb5d9151939faeb4d5604b4ddb69fefcd166e690a9c1c9a235c024f376e49f") {
transactionsRoles(to: "ethereum.eth") {
hash
}
}
}
{
block(hash: "0x27cb5d9151939faeb4d5604b4ddb69fefcd166e690a9c1c9a235c024f376e49f") {
transactionsInvolving(participants: ["ethereum.eth"]) {
hash
}
}
}
- Top-Level Queries
- Example Use Cases
- Block Query Fields
- Account Query Fields
- Transaction Query Fields
- Log Query Fields
- Decoded Transaction Query Fields
- ENS plugin: resolving names into addresses