npm install
npm i -g vercel
vercel dev
GET http://localhost:3000/api/name?accountId=0x99840Df5Cb42faBE0Feb8811Aaa4BC99cA6C84e0
Example response:
{
"name": "jellymcjellyfish.eth"
}
GET http://localhost:3000/api/address?name=jellymcjellyfish.eth
Example response:
{
"address": "0x99840Df5Cb42faBE0Feb8811Aaa4BC99cA6C84e0"
}
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 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"
}
]
}
}