Skip to content

Latest commit

 

History

History
175 lines (140 loc) · 3.59 KB

File metadata and controls

175 lines (140 loc) · 3.59 KB

ENS Adapter

1.0.2

ENS Adapter

This document was generated automatically. Please see README Generator for more info.

Environment Variables

Required? Name Description Type Options Default
RPC_URL A valid Ethereum RPC URL string

Input Parameters

Every EA supports base input parameters from this list

Required? Name Description Type Options Default
endpoint The endpoint to use string lookup lookup

Lookup Endpoint

Look up information about a human friendly ENS domain name

lookup is the only supported name for this endpoint.

Input Params

Required? Name Aliases Description Type Options Default Depends On Not Valid With
ensName The ENS name to look up string

Example

Request:

{
  "id": "1",
  "data": {
    "endpoint": "lookup",
    "resultPath": "address",
    "ensName": "mockinputethtld.eth"
  },
  "debug": {
    "cacheKey": "JSErNmN8G275BpWeOunk+wT/938="
  }
}

Response:

{
  "jobRunID": "1",
  "data": {
    "registrant": "fake-registrar-ownerOf",
    "controller": "fake-registry-owner",
    "address": "0x0mockinputethtld.eth",
    "result": "0x0mockinputethtld.eth"
  },
  "result": "0x0mockinputethtld.eth",
  "statusCode": 200,
  "providerStatusCode": 200
}
Additional Examples

Request:

{
  "id": "1",
  "data": {
    "endpoint": "lookup",
    "resultPath": "address",
    "ensName": "mockinputnonethtld.test"
  },
  "debug": {
    "cacheKey": "v7iYX6aZnnAHPZbnu9UDSLvRrgw="
  }
}

Response:

{
  "jobRunID": "1",
  "data": {
    "controller": "fake-registry-owner",
    "address": "0x0mockinputnonethtld.test",
    "result": "0x0mockinputnonethtld.test"
  },
  "result": "0x0mockinputnonethtld.test",
  "statusCode": 200,
  "providerStatusCode": 200
}

Request:

{
  "id": "1",
  "data": {
    "endpoint": "lookup",
    "resultPath": "address",
    "ensName": "subdomain.mockinputethtld.eth"
  },
  "debug": {
    "cacheKey": "ykDmNZC347HfwpLF5sh41ZVPHBQ="
  }
}

Response:

{
  "jobRunID": "1",
  "data": {
    "controller": "fake-registry-owner",
    "address": "0x0subdomain.mockinputethtld.eth",
    "result": "0x0subdomain.mockinputethtld.eth"
  },
  "result": "0x0subdomain.mockinputethtld.eth",
  "statusCode": 200,
  "providerStatusCode": 200
}

Request:

{
  "id": "1",
  "data": {
    "endpoint": "lookup",
    "resultPath": "address",
    "ensName": "subdomain.mockinputnonethtld.test"
  },
  "debug": {
    "cacheKey": "D5d+Lo5QhukVF6maB6ySrhTLy7E="
  }
}

Response:

{
  "jobRunID": "1",
  "data": {
    "controller": "fake-registry-owner",
    "address": "0x0subdomain.mockinputnonethtld.test",
    "result": "0x0subdomain.mockinputnonethtld.test"
  },
  "result": "0x0subdomain.mockinputnonethtld.test",
  "statusCode": 200,
  "providerStatusCode": 200
}

MIT License