Go to file
dependabot[bot] ccba838bbe
Bump follow-redirects from 1.15.1 to 1.15.9
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.1 to 1.15.9.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.1...v1.15.9)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-11 08:08:41 +00:00
.github put back module 2023-01-11 10:14:19 +02:00
.husky Setting up next serverless function 2022-08-16 18:30:40 +03:00
.vscode Setting up next serverless function 2022-08-16 18:30:40 +03:00
api fix text route 2023-01-12 14:07:57 +02:00
test fix lint 2023-01-12 14:10:58 +02:00
.env.example Removing NEXT_PUBLIC_ prefix 2022-08-22 11:28:08 +03:00
.eslintrc Updating eslintrc 2022-08-22 16:42:12 +03:00
.gitignore Removing Next.js 2022-08-22 15:42:40 +03:00
.prettierrc Setting up dev tools 2022-08-15 15:57:57 +03:00
index.html change to html 2024-09-11 11:05:46 +03:00
package-lock.json Bump follow-redirects from 1.15.1 to 1.15.9 2024-09-11 08:08:41 +00:00
package.json Bump @vercel/node from 2.15.8 to 3.0.11 2023-12-01 02:06:58 +00:00
README.md Updating readme example responses 2022-08-24 16:52:33 +03:00
tsconfig.json set tyoe commonJs 2023-01-11 11:52:02 +02:00
vercel.json update ts config 2023-01-10 18:24:52 +02:00

Proxy API for ENS requests

Running Locally

npm install
npm i -g vercel
vercel dev

Example Requests

Get Ens Name

GET http://localhost:3000/api/name?accountId=0x99840Df5Cb42faBE0Feb8811Aaa4BC99cA6C84e0

Example response:

{
    "name": "jellymcjellyfish.eth"
}

Get Ens Address

GET http://localhost:3000/api/address?name=jellymcjellyfish.eth

Example response:

{
    "address": "0x99840Df5Cb42faBE0Feb8811Aaa4BC99cA6C84e0"
}

Get Ens Text Records

GET http://localhost:3000/api/text?name=jellymcjellyfish.eth

Example response:

{
    "records": [
        {
            "key": "url",
            "value": "https://oceanprotocol.com"
        },
        {
            "key": "avatar",
            "value": "https://raw.githubusercontent.com/oceanprotocol/art/main/logo/favicon-white.png"
        },
        {
            "key": "com.twitter",
            "value": "oceanprotocol"
        },
        {
            "key": "com.github",
            "value": "oceanprotocol"
        }
    ]
}

Get ENS Profile

GET http://localhost:3000/api/profile?address=0x99840Df5Cb42faBE0Feb8811Aaa4BC99cA6C84e0

Example response:

{
    "profile": {
        "name": "jellymcjellyfish.eth",
        "avatar": "https://metadata.ens.domains/mainnet/avatar/jellymcjellyfish.eth",
        "links": [
            {
                "key": "url",
                "value": "https://oceanprotocol.com"
            },
            {
                "key": "com.twitter",
                "value": "oceanprotocol"
            },
            {
                "key": "com.github",
                "value": "oceanprotocol"
            }
        ]
    }
}