ENS Adapter
This document was generated automatically. Please see README Generator for more info.
Required? | Name | Description | Type | Options | Default |
---|---|---|---|---|---|
✅ | RPC_URL | A valid Ethereum RPC URL | string | ||
CHAIN_ID | The chain id to connect to | string | 1 |
There are no rate limits for this adapter.
Every EA supports base input parameters from this list
Required? | Name | Description | Type | Options | Default |
---|---|---|---|---|---|
endpoint | The endpoint to use | string | lookup | lookup |
Look up information about a human friendly ENS domain name
lookup
is the only supported name for this endpoint.
Required? | Name | Aliases | Description | Type | Options | Default | Depends On | Not Valid With |
---|---|---|---|---|---|---|---|---|
✅ | ensName | The ENS name to look up | string |
Request:
{
"id": "1",
"data": {
"ensName": "mockinputethtld.eth",
"endpoint": "lookup",
"resultPath": "address"
},
"debug": {
"cacheKey": "lBQVhNyHkF8nstGK9E/bmMFenGM="
}
}
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": {
"ensName": "mockinputnonethtld.test",
"endpoint": "lookup",
"resultPath": "address"
},
"debug": {
"cacheKey": "PzVHxnsdOTP9OEKRVKRD8YhU2dg="
}
}
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": {
"ensName": "subdomain.mockinputethtld.eth",
"endpoint": "lookup",
"resultPath": "address"
},
"debug": {
"cacheKey": "0LOWogTArOegT4oJa3Twh8ok+IM="
}
}
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": {
"ensName": "subdomain.mockinputnonethtld.test",
"endpoint": "lookup",
"resultPath": "address"
},
"debug": {
"cacheKey": "jDkQbMyh5qYQgHSDG0jRWgvx+cE="
}
}
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